X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_upload.py;h=0f89f46b8765c0be4a65eb55b791b95a0995b980;hb=b738214ce67f7379e1106aff8ef226a8807fe1cb;hp=bf5cda591d210c71ef735999b0a2643e11a04134;hpb=22182e36af2695babeeebe08bd9fcc733f5fd346;p=dak.git diff --git a/dak/process_upload.py b/dak/process_upload.py index bf5cda59..0f89f46b 100755 --- a/dak/process_upload.py +++ b/dak/process_upload.py @@ -212,7 +212,7 @@ def try_or_reject(function): try: return function(directory, upload, *args, **kwargs) except (daklib.archive.ArchiveException, daklib.checks.Reject) as e: - reason = e + reason = unicode(e) except Exception as e: reason = "There was an uncaught exception when processing your upload:\n{0}\nAny original reject reason follows below.".format(traceback.format_exc())