Explorar el Código

Makes the depot configuration parameter mandatory

Adrien Panay hace 7 años
padre
commit
0235219fff
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      tracim/tracim/config/app_cfg.py

+ 5 - 0
tracim/tracim/config/app_cfg.py Ver fichero

@@ -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
         )