From 14f5966246fb22959f1d280f14683b8bf4c6c005 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sun, 20 Dec 2009 19:51:12 +0100 Subject: fixed file removing? --- module/file_list.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'module') 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): """ -- cgit v1.2.3