Merge ./run --debug into --develop option

Signed-off-by: Michael Pimmer <info@fonfon.at>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Michael Pimmer authored and James Valleroy committed 2018-06-18 19:27:38 -04:00
1 parent b0e09736d0
commit 00ac068133
5 files changed
+32 -43

No files matched your search

+3 -3
View File
@@ -57,7 +57,7 @@ def load_modules():
except Exception as exception:
logger.exception('Could not import %s: %s', module_import_path,
exception)
if cfg.debug:
if cfg.develop:
raise
ordered_modules = []
@@ -120,7 +120,7 @@ def _include_module_urls(module_import_path, module_name):
r'', django.conf.urls.include((url_module, module_name)))]
except ImportError:
logger.debug('No URLs for %s', module_name)
if cfg.debug:
if cfg.develop:
raise
@@ -140,7 +140,7 @@ def _initialize_module(module_name, module):
except Exception as exception:
logger.exception('Exception while running init for %s: %s',
module, exception)
if cfg.debug:
if cfg.develop:
raise