diff --git a/aanmelden/src/views.py b/aanmelden/src/views.py index de360db..464abf8 100644 --- a/aanmelden/src/views.py +++ b/aanmelden/src/views.py @@ -40,7 +40,7 @@ def get(self, request, *args, **kwargs): client_secret=settings.IDP_CLIENT_SECRET) except Exception as e: # Something went wrong getting the token - return HttpResponseForbidden('Geen toegang: {0}'.format(e)) + return HttpResponseForbidden(f'Geen toegang: {str(e)}') if 'access_token' in access_token and access_token['access_token'] != '': user_profile = oauth.get(settings.IDP_API_URL).json()