[dak/master] dak/process_upload.py: convert exception to string
This fixes a type error when the code uses "+" to concat strings which
we reach when we throw an exception in the exception handling code.
---
dak/process_upload.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dak/process_upload.py b/dak/process_upload.py
index bf5cda5..0f89f46 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())
--
1.7.2.5
Reply to: