Fix Auth API key check causing error 500s

This commit is contained in:
2010-08-27 22:42:49 +01:00
parent 777c030d03
commit fb2cfe4759

View File

@@ -10,7 +10,7 @@ class APIKeyAuthentication(object):
for key,value in request.GET.items(): for key,value in request.GET.items():
params[key.lower()] = value params[key.lower()] = value
if params['apikey']: if 'apikey' in params:
try: try:
keyobj = AuthAPIKey.objects.get(key=params['apikey']) keyobj = AuthAPIKey.objects.get(key=params['apikey'])
except: except: