From bc99e0ba99e29463d4ddef6c0077340fd7d3ec24 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 9 Sep 2019 13:52:31 -0700 Subject: [PATCH] add a couple comments to describe why the error cases are there.. --- ui/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')