#3785 commit hooks broken: AttributeError: 'Project' object has no attribute 'mail_to'
Closed: Fixed Opened by cheimes.

Pagure's commit hooks for FreeIPA project are failing with an attribute error. The issue is breaking email notification and git mirroring to Github.

git push origin 4b60bc38148a28caa0ba0ab705d88d16de3322d9:master
remote: Running hooks for freeipa        
remote: No handlers could be found for logger "pagure.hooks.default"        
remote: Running hooks for freeipa        
remote: Sending to redis to log activity and send commit notification emails        
remote: * Publishing information for 1 commits        
remote:   - to fedmsg        
remote:   - to web-hooks        
remote: Traceback (most recent call last):        
remote:   File "hooks/post-receive", line 24, in <module>        
remote:     run_hook_file(hooktype)        
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/__init__.py", line 502, in run_hook_file        
remote:     pull_request,        
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/__init__.py", line 366, in run_project_hooks        
remote:     changes=changes,        
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/__init__.py", line 110, in runhook        
remote:     changes=changes,        
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/mail.py", line 84, in post_receive        
remote:     "multimailhook.mailingList", "", project.mail_to        
remote: AttributeError: 'Project' object has no attribute 'mail_to'        
To ssh://pagure.io/freeipa.git
   5dbcc1a9d..4b60bc381  4b60bc38148a28caa0ba0ab705d88d16de3322d9 -> master
 0
Cleaning up

Fix PR is #3786.

Commit 7a66dd0a fixes this issue

The fix hasn't been deployed yet and the git commit hook is still broken. What's the ETA for the fix?

Metadata
Related Pull Requests