Skip to content

Commit

Permalink
Terminate cleanly when plugin registration fails. Fixes #3172.
Browse files Browse the repository at this point in the history
  • Loading branch information
aknrdureegaesr committed Aug 11, 2023
1 parent 0d1bcd4 commit 1a50abb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Release type: minor

Terminate cleanly when plugin registration fails.
1 change: 1 addition & 0 deletions pelican/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def init_plugins(self):
except Exception as e:
logger.error('Cannot register plugin `%s`\n%s',
name, e)
raise

self.settings['PLUGINS'] = [get_plugin_name(p) for p in self.plugins]

Expand Down

0 comments on commit 1a50abb

Please sign in to comment.