From eaf5c9687edd82269202f64798ebbc664ba88cac Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sun, 29 May 2016 20:21:23 +0100 Subject: [PATCH] Fixed typo, closes #174 --- PyRIGS/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyRIGS/decorators.py b/PyRIGS/decorators.py index a7c1db90..67d8964c 100644 --- a/PyRIGS/decorators.py +++ b/PyRIGS/decorators.py @@ -58,7 +58,7 @@ def api_key_required(function): try: user_object = models.Profile.objects.get(pk=userid) - except Profile.DoesNotExist: + except models.Profile.DoesNotExist: return error_resp if user_object.api_key != key: