Skip to content

Commit

Permalink
Follow-up to bug 671488 to add KeyError catching back to fromRelease …
Browse files Browse the repository at this point in the history
…logic in the apprelease blobs (which was lost in a refactor).
  • Loading branch information
bhearsum committed Dec 16, 2014
1 parent fb50510 commit e34f70b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion auslib/blobs/apprelease.py
Expand Up @@ -72,7 +72,11 @@ def _getFromRelease(self, patch):
# Because we know it doesn't exist in the database it's wasteful to
# even attempt to look it up.
if patch["from"] != "*":
return dbo.releases.getReleaseBlob(name=patch["from"])
try:
return dbo.releases.getReleaseBlob(name=patch["from"])
except KeyError:
# Release doesn't exist
return None
else:
return None

Expand Down

0 comments on commit e34f70b

Please sign in to comment.