Skip to content

Commit

Permalink
Let fmu-sumo-uploader improve error handling when user fails to login… (
Browse files Browse the repository at this point in the history
  • Loading branch information
roywilly authored Mar 8, 2024
1 parent 91ae88f commit 5f31598
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sumo/wrapper/_auth_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ def get_token(self):
return result["access_token"]

def get_authorization(self):
return {"Authorization": "Bearer " + self.get_token()}
token = self.get_token()
if token is None:
return ""

return {"Authorization": "Bearer " + token}

pass

Expand Down

0 comments on commit 5f31598

Please sign in to comment.