X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_upload.py;h=0f89f46b8765c0be4a65eb55b791b95a0995b980;hb=4cbcf2ec05c369e20897afb68770826468b84fdf;hp=bf5cda591d210c71ef735999b0a2643e11a04134;hpb=1e945c24f59d3e92ef18f456b60aa10210a3113c;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())