summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-20 19:51:12 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-20 19:51:12 +0100
commit14f5966246fb22959f1d280f14683b8bf4c6c005 (patch)
tree89ec1a516c400f9af0877d0e184b6703d6350d85 /module
parentwebinterface - add new button icons (diff)
downloadpyload-14f5966246fb22959f1d280f14683b8bf4c6c005.tar.xz
fixed file removing?
Diffstat (limited to 'module')
-rw-r--r--module/file_list.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/file_list.py b/module/file_list.py
index 1cd069de7..efe45c044 100644
--- a/module/file_list.py
+++ b/module/file_list.py
@@ -195,11 +195,10 @@ class File_List(object):
try:
n, pyfile = collector._getFileFromID(id)
del collector.file_list.data["collector"][n]
- collector.file_list.lock.release()
- except:
- collector.file_list.lock.release()
else:
return pyfile
+ finally:
+ collector.file_list.lock.release()
def addLink(collector, url):
"""