summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-02-05 00:01:58 +0100
committerDan McGee <dan@archlinux.org>2013-02-05 00:01:58 +0100
commitcfa2798880eccda63a3ed4d3eddadeb01f5065d2 (patch)
tree84108346cbe5dfd4f5ccbbf588d39e8ccf5f2d47
parent508d06af810c787b2644331444279407ccfa27af (diff)
downloadarchweb-cfa2798880eccda63a3ed4d3eddadeb01f5065d2.tar.gz
archweb-cfa2798880eccda63a3ed4d3eddadeb01f5065d2.tar.xz
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>
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 53a24ff..46fd3a6 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