From 4a97e99ec3d2830d124ce50a7e4a6cdaa47d68c0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 14 2015 16:08:54 +0000 Subject: While we should never encounter this situation, it will help to debug if we do --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index cfd6f55..1a1467a 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -849,13 +849,17 @@ def edit_comment(session, parent, comment, user, pagure.lib.git.update_git( parent, repo=parent.project, repofolder=folder) - topic = 'issue.comment.edited' - key = 'issue' - id_ = 'issue_id' + topic = 'unknown' + key = 'unknown' + id_ = 'unknown' if parent.isa == 'pull-request': topic = 'pull-request.comment.edited' key = 'pullrequest' id_ = 'request_id' + elif parent.isa == 'issue': + topic = 'issue.comment.edited' + key = 'issue' + id_ = 'issue_id' pagure.lib.notify.log( parent.project,