Browse Source

Makes the depot configuration parameter mandatory

Adrien Panay 7 years ago
parent
commit
0235219fff
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tracim/tracim/config/app_cfg.py

+ 5 - 0
tracim/tracim/config/app_cfg.py View File

@@ -214,6 +214,11 @@ class CFG(object):
214 214
         self.DEPOT_STORAGE_DIR = tg.config.get(
215 215
             'depot_storage_dir',
216 216
         )
217
+        if not self.DEPOT_STORAGE_DIR:
218
+            raise Exception(
219
+                'ERROR: depot_storage_dir configuration is mandatory. '
220
+                'Set it before continuing.'
221
+            )
217 222
         self.PREVIEW_CACHE_DIR = tg.config.get(
218 223
             'preview_cache_dir',
219 224
         )