From 54b787dd2a35b51952fdcb26df51cb18a0c97060 Mon Sep 17 00:00:00 2001 From: spoob Date: Sat, 28 Nov 2009 14:17:28 +0100 Subject: cleaned and fixed --- module/file_list.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'module/file_list.py') 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"]: -- cgit v1.2.3