Skip to content

Commit

Permalink
[core] catch EOFError when loading status
Browse files Browse the repository at this point in the history
It can happen when disk is full.
  • Loading branch information
degemer committed Oct 28, 2016
1 parent 95fb28c commit c083087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/check_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def load_latest_status(cls):
return pickle.load(f)
finally:
f.close()
except IOError:
except (IOError, EOFError):
return None

@classmethod
Expand Down

0 comments on commit c083087

Please sign in to comment.