Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
bugfix: py2: also catch IOError
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Armbruster committed Jun 11, 2018
1 parent 415b47f commit 8c91f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eidangservices/federator/server/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def _run(self, stream_epoch):
with open(self.path_tempfile, 'rb') as ifd:
ifd.seek(-self.MSEED_RECORD_SIZE, 2)
last_chunk = ifd.read(self.MSEED_RECORD_SIZE)
except (OSError, ValueError) as err:
except (OSError, IOError, ValueError) as err:
pass

self.logger.debug(
Expand Down

0 comments on commit 8c91f6e

Please sign in to comment.