Corrected the abort code for missing resource
This commit is contained in:
parent
36af9f84b5
commit
6743882bf1
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ class ListAPI(MicroscopeView):
|
|||
if ('width' in resize) and ('height' in resize):
|
||||
resize = (int(resize['width']), int(resize['height'])) # Convert dict to tuple
|
||||
else:
|
||||
abort(400)
|
||||
abort(404)
|
||||
|
||||
# Explicitally acquire lock (prevents empty files being created if lock is unavailable)
|
||||
with self.microscope.camera.lock:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue