Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

properly deal with broken statefiles, and avoid them #1

Open
Dieterbe opened this issue Apr 19, 2011 · 0 comments
Open

properly deal with broken statefiles, and avoid them #1

Dieterbe opened this issue Apr 19, 2011 · 0 comments

Comments

@Dieterbe
Copy link
Owner

I ran out of diskspace and apparently it stored a broken statefile, which breaks subsequent runs.

root        : INFO     Rss2email started
Traceback (most recent call last):
  File "/usr/bin/rss2email.py", line 883, in <module>
    run()
  File "/usr/bin/rss2email.py", line 605, in run
    feeds = load()
  File "/usr/bin/rss2email.py", line 565, in load
    feeds_state = pickle.load(statefile)
EOFError

So,

  • handle the case of broken statefiles better (abort with proper error)
  • avoid this from happening (create tmp file first, then move it)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant