Fixes: https://pagure.io/koji/issue/680
rebased onto 74694c58d1e705f6647bab2cf8e6efd105fbf60c
:thumbsup:
flake8 caught a couple unused exception vars. Will fix and merge
Commit 04af9706 fixes this pull-request
Pull-Request has been merged by mikem
Fixes: https://pagure.io/koji/issue/680