FIX:Unavailable value for tipocambio crashed the loading of values
This commit is contained in:
@ -22,7 +22,10 @@ def validate_key(request_obj):
|
||||
if isinstance(auth, list):
|
||||
auth = auth[0]
|
||||
if 'Bearer' in auth:
|
||||
auth = auth.split(' ')[1]
|
||||
try:
|
||||
auth = auth.split(' ')[1]
|
||||
except:
|
||||
return False
|
||||
return auth == api_key
|
||||
if 'API_KEY' in request_obj.values:
|
||||
return request_obj.values.get('API_KEY') == api_key
|
||||
|
Reference in New Issue
Block a user