Apply suggestions from code review of branch image-capture

Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
This commit is contained in:
Julian Stirling 2026-06-24 10:23:35 +00:00
parent 58dd3f2afe
commit d31d1154cc
4 changed files with 6 additions and 3 deletions

View file

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