← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ilasc/launchpad:upload-error-to-text-type into launchpad:master

 

Ioana Lasc has proposed merging ~ilasc/launchpad:upload-error-to-text-type into launchpad:master.

Commit message:
Move from str to text_type in UploadError

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ilasc/launchpad/+git/launchpad/+merge/397148
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ilasc/launchpad:upload-error-to-text-type into launchpad:master.
diff --git a/lib/lp/archiveuploader/dscfile.py b/lib/lp/archiveuploader/dscfile.py
index 3962086..9e174c4 100644
--- a/lib/lp/archiveuploader/dscfile.py
+++ b/lib/lp/archiveuploader/dscfile.py
@@ -1,4 +1,4 @@
-# Copyright 2009-2018 Canonical Ltd.  This software is licensed under the
+# Copyright 2009-2021 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
 """ DSCFile and related.
@@ -215,7 +215,7 @@ class SignableTagFile:
         try:
             (name, email) = parse_maintainer_bytes(addr, fieldname)
         except ParseMaintError as error:
-            raise UploadError(str(error))
+            raise UploadError(six.text_type(error))
 
         person = getUtility(IPersonSet).getByEmail(email)
         if person and person.private: