From fb2cfe4759fb98de644932af17a247428b2cc0f5 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 27 Aug 2010 22:42:49 +0100 Subject: [PATCH] Fix Auth API key check causing error 500s --- api/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/auth.py b/api/auth.py index 445e488..d2b21e3 100644 --- a/api/auth.py +++ b/api/auth.py @@ -10,7 +10,7 @@ class APIKeyAuthentication(object): for key,value in request.GET.items(): params[key.lower()] = value - if params['apikey']: + if 'apikey' in params: try: keyobj = AuthAPIKey.objects.get(key=params['apikey']) except: