Skip to content

Commit 689980a

Browse files
fixed a bug that failed to catch eof errors when reading new subscription files.
1 parent 260d605 commit 689980a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resourcesync_push/hub/hub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def read_subscriptions(self):
4747
# file gets created if there is none.
4848
sub_file = open(filename, "r+b")
4949
data = cPickle.load(sub_file)
50-
except IOError as err:
50+
except (IOError, EOFError) as err:
5151
print(err)
5252
finally:
5353
if sub_file:

0 commit comments

Comments
 (0)