X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fclean_queues.py;h=e6e4f76cb32b23b77da55885e8d9022d95e10bb6;hb=1f9e12bd3887917d6af572282d3c961686cd7251;hp=4147ab054533245ad21aab8cd8d0ae6c9dd8b182;hpb=306e75dcfc9a55698a703ea6f1c80b6204cc8436;p=dak.git diff --git a/dak/clean_queues.py b/dak/clean_queues.py index 4147ab05..e6e4f76c 100755 --- a/dak/clean_queues.py +++ b/dak/clean_queues.py @@ -157,7 +157,7 @@ def flush_orphans (): changes = utils.parse_changes(changes_filename) files = utils.build_file_list(changes) except: - utils.warn("error processing '%s'; skipping it. [Got %s]" % (changes_filename, sys.exc_type)) + utils.warn("error processing '%s'; skipping it. [Got %s]" % (changes_filename, sys.exc_info()[0])) continue dsc_files = {} @@ -167,7 +167,7 @@ def flush_orphans (): dsc = utils.parse_changes(f, dsc_file=1) dsc_files = utils.build_file_list(dsc, is_a_dsc=1) except: - utils.warn("error processing '%s'; skipping it. [Got %s]" % (f, sys.exc_type)) + utils.warn("error processing '%s'; skipping it. [Got %s]" % (f, sys.exc_info()[0])) continue # Ensure all the files we've seen aren't deleted