1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Expired pastes are removed from localStorage

This commit is contained in:
sam
2012-05-22 17:40:57 +02:00
parent 470194806e
commit a824bc2a21
4 changed files with 21 additions and 4 deletions

View File

@ -158,7 +158,7 @@ class Paste(object):
#remove lock file
os.remove(lock_file)
except (IOError, OSError):
finally:
if os.path.isfile(lock_file):
#remove lock file
os.remove(lock_file)