Skip to content
Permalink
Browse files
Re-raise task exceptions in debug mode
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 20, 2017
1 parent fe2c5cd commit fc39108272188f1d8f0cf137458d2e8b284eca9d
Showing with 2 additions and 0 deletions.
  1. +2 −0 nikola/__main__.py
@@ -285,6 +285,8 @@ def load_tasks(self, cmd, opt_values, pos_args):
signal('initialized').send(self.nikola)
except Exception:
LOGGER.error('Error loading tasks')
if self.nikola.debug:
raise
sys.exit(3)
return tasks + latetasks, DOIT_CONFIG

0 comments on commit fc39108

Please sign in to comment.