diff --git a/pelican/__init__.py b/pelican/__init__.py index fa636bb0..f6868ab8 100644 --- a/pelican/__init__.py +++ b/pelican/__init__.py @@ -470,7 +470,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)