Skip to content

Commit 9bd34e1

Browse files
author
Joel Collins
committed
Handle missing Flask extension in current_labthing
1 parent cf7ae41 commit 9bd34e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labthings/server/find.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def current_labthing(app=None):
1919
logging.debug("Active app extensions:")
2020
logging.debug(app.extensions)
2121
logging.debug("Active labthing:")
22-
logging.debug(app.extensions[EXTENSION_NAME])
22+
logging.debug(app.extensions.get(EXTENSION_NAME))
2323
return app.extensions.get(EXTENSION_NAME, None)
2424

2525

0 commit comments

Comments
 (0)