Skip to content

Commit de98c93

Browse files
author
Joel Collins
committed
Removed assert outside of tests
1 parent 9bc663d commit de98c93

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/labthings/view/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ def dispatch_request(self, *args, **kwargs):
8989
if meth is None and request.method == "HEAD":
9090
meth = getattr(self, "get", None)
9191

92-
# Flask should ensure this is assersion never fails
93-
assert meth is not None, f"Unimplemented method {request.method!r}"
94-
9592
# Generate basic response
9693
return self.represent_response(meth(*args, **kwargs))
9794

0 commit comments

Comments
 (0)