diff options
author | spoob <spoob@gmx.de> | 2009-11-28 14:17:28 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-11-28 14:17:28 +0100 |
commit | 54b787dd2a35b51952fdcb26df51cb18a0c97060 (patch) | |
tree | fd39b3c11fc6368b6902d2bf877f23881a63bac4 /module | |
parent | updated xmlrpc methods (diff) | |
download | pyload-54b787dd2a35b51952fdcb26df51cb18a0c97060.tar.xz |
cleaned and fixed
Diffstat (limited to 'module')
-rw-r--r-- | module/file_list.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/file_list.py b/module/file_list.py index 1bcfb8580..7b886cc2c 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -28,7 +28,6 @@ from download_thread import Status import cPickle import re import module.Plugin -import traceback class NoSuchElementException(Exception): pass @@ -56,8 +55,7 @@ class File_List(object): obj = cPickle.load(pkl_file) except: obj = False - traceback.print_exc() - if obj['version'] == LIST_VERSION and obj != False: + if obj != False and obj['version'] == LIST_VERSION: packages = [] queue = [] collector = [] @@ -151,7 +149,7 @@ class File_List(object): returns a free id """ ids = [] - for pypack in (packager.file_list.data["packages"] + packager.file_list.data["queue"]): + for pypack in (collector.file_list.data["packages"] + collector.file_list.data["queue"]): for pyf in pypack.links: ids.append(pyf.id) for pyfile in collector.file_list.data["collector"]: |