Skip to content

Commit

Permalink
Handle missing Flask extension in current_labthing
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 15, 2020
1 parent cf7ae41 commit 9bd34e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labthings/server/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def current_labthing(app=None):
logging.debug("Active app extensions:")
logging.debug(app.extensions)
logging.debug("Active labthing:")
logging.debug(app.extensions[EXTENSION_NAME])
logging.debug(app.extensions.get(EXTENSION_NAME))
return app.extensions.get(EXTENSION_NAME, None)


Expand Down

0 comments on commit 9bd34e1

Please sign in to comment.