Skip to content

Commit

Permalink
πŸš‘ (src/routes): fix KeyError for new requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ncvescera committed Oct 16, 2024
1 parent 54e884b commit d3ce2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def homepage():

if user:
_username = user['metadata']['name']
_groups = dbms.get_request_data(_username)['groups']
_groups = dbms.get_request_data(_username).get('groups', [])
user['username'] = _username
user['groups'] = _groups
user['uninuvolaurl'] = 'https://compute.uninuvola.unipg.it/hub/oauth_login?next='
Expand Down

0 comments on commit d3ce2a1

Please sign in to comment.