diff --git a/ui/server.py b/ui/server.py index 15a1ab5..b4fec20 100644 --- a/ui/server.py +++ b/ui/server.py @@ -44,9 +44,9 @@ class MEDAServer: try: id = uuid.UUID(id) return self._objstore[id][-1].encode() - except ValueError: + except ValueError: # invalid format for uuid request.setResponseCode(400) - except KeyError: + except KeyError: # no object request.setResponseCode(404) @app.route('/store')