Package: ubuntu-dev-tools Version: 0.177 Severity: normal Dear Maintainer,
The tool import-bug-from-debian can create bug descriptions which look like the following: [<email.message.Message object at 0x7fbe14096fa0>, <email.message.Message object at 0x7fbe15143820>] I believe this is because the first message has multiple payloads and import-bug-from-debian does not handle this. As an example of what goes wrong please see: http://launchpad.net/bugs/1894141 I've modified import-bug-from-debian with the following change: $ diff -Nrup ubuntu-dev-tools-0.177/import-bug-from-debian import-bug-from-debian --- ubuntu-dev-tools-0.177/import-bug-from-debian 2019-12-01 10:18:32.000000000 -0800 +++ import-bug-from-debian 2020-09-03 13:54:51.293360839 -0700 @@ -106,7 +106,10 @@ def main(): bug_num = bug.bug_num subject = bug.subject log = debianbts.get_bug_log(bug_num) - summary = log[0]['message'].get_payload() + if isinstance(log[0]['message'].get_payload(), str): + summary = log[0]['message'].get_payload() + else: + summary = log[0]['message'].get_payload()[0].get_payload() target = ubuntu.getSourcePackage(name=ubupackage) if target is None: Logger.error("Source package '%s' is not in Ubuntu. Please specify " For testing this I used qastaging.launchpad.net.