zs

Zeitungsschau rss to email converter
git clone git://r-36.net/zs
Log | Files | Refs | LICENSE

commit 405089d5b8c2fe5999d25a835509f9aa3f5cddd1
parent 8e4b3c45ab2319c87570b7cb60fa1fcf49ce0e93
Author: Christoph Lohmann <20h@r-36.net>
Date:   Mon,  7 Dec 2015 20:10:08 +0100

Do not burp if lock file has already been deleted.

Diffstat:
zeitungsschau/feeddb.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/zeitungsschau/feeddb.py b/zeitungsschau/feeddb.py @@ -30,7 +30,10 @@ class feeddb(object): fcntl.flock(self.locks[fpath].fileno(), fcntl.LOCK_UN) self.locks[fpath].close() lpath = "%s.lck" % (fpath) - os.remove(lpath) + try: + os.remove(lpath) + except FileNotFoundError: + pass if doremove == True: del self.locks[fpath]