Corrected the abort code for missing resource

This commit is contained in:
Joel Collins 2019-01-29 14:43:22 +00:00
parent 36af9f84b5
commit 6743882bf1

View file

@ -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: