ソースを参照

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
         )