summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-02-04 17:01:58 -0600
committerDan McGee <dan@archlinux.org>2013-02-04 17:01:58 -0600
commitcfa2798880eccda63a3ed4d3eddadeb01f5065d2 (patch)
tree84108346cbe5dfd4f5ccbbf588d39e8ccf5f2d47 /main
parent508d06af810c787b2644331444279407ccfa27af (diff)
Update exception to DeveloperKey.DoesNotExist
We aren't looking up users; we are looking up developer keys. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 53a24ffc..46fd3a63 100644
--- a/main/models.py
+++ b/main/models.py
@@ -157,7 +157,7 @@ class Package(models.Model):
matching_key = DeveloperKey.objects.select_related(
'owner').get(key=sig.key_id, owner_id__isnull=False)
user = matching_key.owner
- except User.DoesNotExist:
+ except DeveloperKey.DoesNotExist:
user = None
return user
return None