Robie Basak
2017-02-10 13:28:11 UTC
Public bug reported:
$ grep-merges Basak
Traceback (most recent call last):
File "/usr/bin/grep-merges", line 74, in <module>
main()
File "/usr/bin/grep-merges", line 68, in main
pretty_uploader = ' '.join((author, uploader)).strip()
TypeError: sequence item 0: expected string, NoneType found
I've been told other people are hitting this, too. At least Xenial
(0.155ubuntu2) and Zesty (0.157) are affected. Patch:
--- /usr/bin/grep-merges 2016-07-07 20:12:04.000000000 +0100
+++ /tmp/grep-merges 2017-02-07 00:23:22.802977775 +0000
@@ -61,9 +61,9 @@
for merge in json.loads(page):
package = merge['source_package']
author, uploader = '', ''
- if 'user' in merge:
+ if merge.get('user'):
author = merge['user']
- if 'uploader' in merge:
+ if merge.get('uploader'):
uploader = '(%s)' % merge['uploader']
pretty_uploader = ' '.join((author, uploader)).strip()
if (match is None or
** Affects: ubuntu-dev-tools (Ubuntu)
Importance: Medium
Status: Triaged
** Tags: patch
--
You received this bug notification because you are a member of MOTU,
which is subscribed to ubuntu-dev-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1663601
Title:
"grep-merges" fails with "TypeError: sequence item 0: expected string,
NoneType found"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1663601/+subscriptions
$ grep-merges Basak
Traceback (most recent call last):
File "/usr/bin/grep-merges", line 74, in <module>
main()
File "/usr/bin/grep-merges", line 68, in main
pretty_uploader = ' '.join((author, uploader)).strip()
TypeError: sequence item 0: expected string, NoneType found
I've been told other people are hitting this, too. At least Xenial
(0.155ubuntu2) and Zesty (0.157) are affected. Patch:
--- /usr/bin/grep-merges 2016-07-07 20:12:04.000000000 +0100
+++ /tmp/grep-merges 2017-02-07 00:23:22.802977775 +0000
@@ -61,9 +61,9 @@
for merge in json.loads(page):
package = merge['source_package']
author, uploader = '', ''
- if 'user' in merge:
+ if merge.get('user'):
author = merge['user']
- if 'uploader' in merge:
+ if merge.get('uploader'):
uploader = '(%s)' % merge['uploader']
pretty_uploader = ' '.join((author, uploader)).strip()
if (match is None or
** Affects: ubuntu-dev-tools (Ubuntu)
Importance: Medium
Status: Triaged
** Tags: patch
--
You received this bug notification because you are a member of MOTU,
which is subscribed to ubuntu-dev-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1663601
Title:
"grep-merges" fails with "TypeError: sequence item 0: expected string,
NoneType found"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1663601/+subscriptions
--
universe-bugs mailing list
universe-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/universe-bugs
universe-bugs mailing list
universe-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/universe-bugs