Skip to content

Commit

Permalink
Merge pull request #1313 from benoit-pierre/fix_1305
Browse files Browse the repository at this point in the history
engine: don't try to start missing extensions
  • Loading branch information
benoit-pierre authored May 14, 2021
2 parents e707ba2 + a7bd9a3 commit 2674b81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions news.d/bugfix/1313.core.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't try to start missing extensions.
4 changes: 4 additions & 0 deletions plover/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ def _start_extensions(self, extension_list):
log.info('starting `%s` extension', extension_name)
try:
extension = registry.get_plugin('extension', extension_name).obj(self)
except KeyError:
# Plugin not installed, skip.
continue
try:
extension.start()
except Exception:
log.error('initializing extension `%s` failed', extension_name, exc_info=True)
Expand Down

0 comments on commit 2674b81

Please sign in to comment.