Merge pull request #1240 from lnussel/master

Don't die on delete requests
This commit is contained in:
Jimmy Berry 2017-11-09 16:25:19 -06:00 committed by GitHub
commit bcdea6812d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ class MaintenanceChecker(ReviewBot.ReviewBot):
pkgname = a.tgt_package
project = a.tgt_project
if project.startswith('openSUSE:Leap:'):
if project.startswith('openSUSE:Leap:') and hasattr(a, 'src_project'):
mapping = MaintenanceChecker._get_lookup_yml(self.apiurl, project)
if mapping is None:
self.logger.error("error loading mapping for {}".format(project))