浏览代码

Makes the depot configuration parameter mandatory

Adrien Panay 7 年前
父节点
当前提交
0235219fff
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      tracim/tracim/config/app_cfg.py

+ 5 - 0
tracim/tracim/config/app_cfg.py 查看文件

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