mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
b0e09736d0
commit
00ac068133
5 files changed
+32
-43
No files matched your search
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user