#9366 src.fp.o push: /usr/share/git-core/post-receive-fedora-messaging: AttributeError: 'str' object has no attribute 'decode'
Closed: Fixed 3 years ago by pingou. Opened 3 years ago by churchyard.

This happened on push of https://src.fedoraproject.org/rpms/jvnet-parent/c/9c718330f6ae20ff86c1676434ee746162bd92dc?branch=master

[master 9c71833] Orphaned for 6+ weeks
 5 files changed, 1 insertion(+), 394 deletions(-)
 delete mode 100644 .gitignore
 create mode 100644 dead.package
 delete mode 100644 jvnet-parent-5.pom
 delete mode 100644 jvnet-parent.spec
 delete mode 100644 sources
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (1/1), done.
Writing objects: 100% (3/3), 282 bytes | 282.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Emitting a message to the fedora-messaging message bus.
remote: Traceback (most recent call last):
remote:   File "/usr/share/git-core/post-receive-fedora-messaging", line 153, in <module>
remote:     commits = [_build_commit(rev) for rev in revs]
remote:   File "/usr/share/git-core/post-receive-fedora-messaging", line 153, in <listcomp>
remote:     commits = [_build_commit(rev) for rev in revs]
remote:   File "/usr/share/git-core/post-receive-fedora-messaging", line 54, in revs_between
remote:     for line in stdout.decode('utf-8').strip().split('\n'):
remote: AttributeError: 'str' object has no attribute 'decode'
remote: Sending to redis to log activity and send commit notification emails
remote: * Publishing information for 1 commits
remote:   - to fedora-message
To ssh://pkgs.fedoraproject.org/rpms/jvnet-parent
   bb76eea..9c71833  master -> master

Not sure what project is this file from.


Fix proposed in https://pagure.io/fedora-infra/ansible/pull-request/278

I know no way to test it, but it seems like a logical thing to do.

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #278 Merged 3 years ago