Closed hroncok closed 9 years ago
but...but... you are still active ;-)
I was just checking something.
Yeah, thanks for the report :)
Hm, trying to replicate it here:
$ ./fedora_active_user.py --email mhroncok@redhat.com --nolists
Bugzilla activity
48 bugs assigned, cc or on which mhroncok@redhat.com commented
Last comment on the most recent ticket on bugzilla:
#1250668 2015-08-06 mhroncok@redhat.com
with python-bugzilla-1.2.1-1.fc21.noarch
Could you run it with --debug? This should give us a stacktrace to work on
DEBUG:active-user:1250668
ERROR:active-user:'ascii' codec can't encode character u'\u010d' in position 9: ordinal not in range(128)
Traceback (most recent call last):
File "./fedora_active_user.py", line 464, in main
_get_bugzilla_history(args.email)
File "./fedora_active_user.py", line 141, in _get_bugzilla_history
last_com['author']))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u010d' in position 9: ordinal not in range(128)
python-bugzilla-1.2.1-1.fc21.noarch as well
Adding u''
to the format string fixes the problem:
print(u' #{0} {1} {2}'.format(
Ok so the presence of the name or the email depends on if you are logged in on bugzilla via a ~/.bugzillatoken
or a ~/.bugzillacookies
(then you get the email), otherwise you get the name.
Indeed, using u''
fixes this, thanks!
The character mentioned is
č
and I have that in my bugzilla name.