summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):
"""