diff --git a/progit/notify.py b/progit/notify.py index 0e09a4c..de3ef99 100644 --- a/progit/notify.py +++ b/progit/notify.py @@ -131,7 +131,7 @@ New issue: ) -def notify_assigned_issue(issue, new_assignee): +def notify_assigned_issue(issue, new_assignee, username): ''' Notify the people following an issue that the assignee changed. ''' text = """ @@ -142,7 +142,7 @@ The issue: `%s` of project: `%s` has been assigned to `%s` by %s. issue.title, issue.project.name, issue.assignee.user, - issue.user.user, + username, '%s/%s/issue/%s' % ( progit.APP.config['APP_URL'], issue.project.name, diff --git a/progit/ui/issues.py b/progit/ui/issues.py index 9d18a90..a912e4c 100644 --- a/progit/ui/issues.py +++ b/progit/ui/issues.py @@ -63,6 +63,7 @@ def add_comment_issue(repo, issueid, username=None): flask.flash(message) except SQLAlchemyError, err: # pragma: no cover SESSION.rollback() + APP.logger.exception(err) flask.flash(str(err), 'error') return flask.redirect(flask.url_for(