Skip to content

Commit

Permalink
change exception
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvng committed Aug 29, 2024
1 parent 3b1b6dd commit aa9bc78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socs/agents/http_camera/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ def acq(self, session, params=None):
out_file.flush()
os.fsync(out_file.fileno())
self.log.debug(f"Wrote {ctime}.jpg to /{camera['location']}/{ctime_dir}.")
except BaseException as e:
except ReadTimeoutError as e:
self.log.error(f'{e}')
self.log.info("An error occurred while writing to file.")
self.log.info("Timeout occurred while writing to file.")
data[camera['location']]['last_attempt'] = time.time()
data[camera['location']]['connected'] = False
continue
Expand Down

0 comments on commit aa9bc78

Please sign in to comment.