]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/server/sanic/server.py
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / nominatim / server / sanic / server.py
index a2379501d9a9ca6ed37679b02907eb1067fbc04c..15887eefd71b04d2d519f77352a54b5758ab2d05 100644 (file)
@@ -35,7 +35,9 @@ class ParamWrapper(api_impl.ASGIAdaptor):
 
 
     def error(self, msg: str, status: int = 400) -> SanicException:
-        return SanicException(msg, status_code=status)
+        exception = SanicException(msg, status_code=status)
+
+        return exception
 
 
     def create_response(self, status: int, output: str) -> HTTPResponse: