Commit 8092f75b authored by mouadh's avatar mouadh

exception handlers

parent 82f80927
......@@ -88,7 +88,8 @@ class MdxEngine:
if os.path.isdir(os.path.join(location, file))
]
except:
except Exception:
print('no csv folders')
pass
# get postgres databases
......@@ -101,7 +102,8 @@ class MdxEngine:
MdxEngine.postgres_db_cubes = [
database[0] for database in cursor.fetchall()
]
except:
except Exception:
print('no database connexion')
pass
return MdxEngine.csv_files_cubes + MdxEngine.postgres_db_cubes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment