Skip to content

Commit 7894eda

Browse files
author
Joel Collins
committed
Better handle missing labthing in extensions lookup
1 parent 42377cb commit 7894eda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

labthings/server/find.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def registered_extensions(labthing_instance=None):
3535
"""
3636
if not labthing_instance:
3737
labthing_instance = current_labthing()
38-
return labthing_instance.extensions
38+
39+
return getattr(labthing_instance, "extensions", {})
3940

4041

4142
def registered_components(labthing_instance=None):

0 commit comments

Comments
 (0)