diff --git a/pelican/__init__.py b/pelican/__init__.py index 30b3c2f8..b3a6f136 100644 --- a/pelican/__init__.py +++ b/pelican/__init__.py @@ -469,7 +469,8 @@ def main(): except Exception as e: if (args.verbosity == logging.DEBUG): - raise + logger.error( + 'Exception occurred: %s', e, exc_info=True) logger.warning( 'Caught exception "%s". Reloading.', e)