Skip to content

Commit

Permalink
fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
zain-sohail committed Sep 28, 2023
1 parent 787b3df commit 87e4125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sed/loader/flash/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@ def _get_token(self) -> str:
return token_response.json()["id"]

# Otherwise issue warning
except requests.exceptions.RequestException as e:
warnings.warn(f"Failed to retrieve authentication token: {str(e)}")
except requests.exceptions.RequestException as exception:
warnings.warn(f"Failed to retrieve authentication token: {str(exception)}")
return "" # Return an empty string if token retrieval fails

0 comments on commit 87e4125

Please sign in to comment.