diff --git a/sed/loader/flash/metadata.py b/sed/loader/flash/metadata.py index cf61d6b0..89c2c620 100644 --- a/sed/loader/flash/metadata.py +++ b/sed/loader/flash/metadata.py @@ -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