Skip to content

Commit

Permalink
Adding keyerrors as warnings (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss committed Oct 2, 2020
1 parent 8b7d2d4 commit d4d875d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dispatch/common/utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ def install_plugins():
plugin = ep.load()
register(plugin)
logger.info(f"Successfully loaded plugin: {ep.name}")
except KeyError as e:
logger.warning(
f"Failed to load plugin {ep.name} due to missing configuration items. {e}"
)
except SQLAlchemyError:
logger.error(
"Something went wrong with creating plugin rows, is the database setup correctly?"
Expand Down

0 comments on commit d4d875d

Please sign in to comment.