We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb51204 commit 841d392Copy full SHA for 841d392
labthings/server/utilities.py
@@ -55,7 +55,7 @@ def view_class_from_endpoint(endpoint: str):
55
Returns:
56
View: View class attached to the specified endpoint
57
"""
58
- return current_app.view_functions[endpoint].view_class
+ return getattr(current_app.view_functions.get(endpoint), "view_class", None)
59
60
61
def unpack(value):
0 commit comments