See the downstream issue:
https://forge.fedoraproject.org/infra/tickets/issues/13346
I worked around it by changing https://pagure.io/pagure/blob/master/f/pagure/ui/filters.py#_150 to:
commit_hash = commit # This can traceback, so try try: # if hasattr(commit_hash, "hex"): commit_hash = commit_hash.hex except: commit_hash = commit