Apply suggestions from code review of branch image-capture
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
This commit is contained in:
parent
58dd3f2afe
commit
d31d1154cc
4 changed files with 6 additions and 3 deletions
|
|
@ -360,7 +360,7 @@ class BaseCamera(OFMThing, ABC):
|
|||
try:
|
||||
os.remove(full_path)
|
||||
except IOError as e:
|
||||
self.logger.warning(f"Camera has no image named {name}.")
|
||||
self.logger.warning(f"Failed to delete {name}.")
|
||||
raise HTTPException(
|
||||
400, "Couldn't delete capture, check log for details"
|
||||
) from e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue