Browse Source

add a couple comments to describe why the error cases are there..

main
John-Mark Gurney 5 years ago
parent
commit
bc99e0ba99
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ui/server.py

+ 2
- 2
ui/server.py View File

@@ -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')


Loading…
Cancel
Save