X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fexamine_package.py;h=eb602794304cf5e562f3d168386d4373e1d5a18d;hb=b481cd8cf9d18912aeb6c0af1e7ab883e347381e;hp=70b1f3ca3d67231c3835b5c5077a85a62f7617e5;hpb=cdffcfe2a0e6804ed35df56c4c2aa084c2b63677;p=dak.git diff --git a/dak/examine_package.py b/dak/examine_package.py index 70b1f3ca..eb602794 100755 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Script to automate some parts of checking NEW packages +""" Script to automate some parts of checking NEW packages """ # Copyright (C) 2000, 2001, 2002, 2003, 2006 James Troup # This program is free software; you can redistribute it and/or modify @@ -470,7 +470,10 @@ def display_changes(suite, changes_filename): foldable_output(changes_filename, "changes", changes, norow=True) def check_changes (changes_filename): - changes = utils.parse_changes (changes_filename) + try: + changes = utils.parse_changes (changes_filename) + except ChangesUnicodeError: + utils.warn("Encoding problem with changes file %s" % (changes_filename)) display_changes(changes['distribution'], changes_filename) files = utils.build_file_list(changes)