mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-12-06 18:44:14 -05:00
Propagate UnauthenticatedError from async_get_track_info
This commit is contained in:
@@ -231,6 +231,9 @@ class OasisCloudClient:
|
|||||||
except ClientResponseError as err:
|
except ClientResponseError as err:
|
||||||
if err.status == 404:
|
if err.status == 404:
|
||||||
return {"id": track_id, "name": f"Unknown Title (#{track_id})"}
|
return {"id": track_id, "name": f"Unknown Title (#{track_id})"}
|
||||||
|
raise
|
||||||
|
except UnauthenticatedError:
|
||||||
|
raise
|
||||||
except Exception as ex: # noqa: BLE001
|
except Exception as ex: # noqa: BLE001
|
||||||
_LOGGER.exception("Error fetching track %s: %s", track_id, ex)
|
_LOGGER.exception("Error fetching track %s: %s", track_id, ex)
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user