File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class InvalidUPC(TidalAPIError):
6464 pass
6565
6666
67- def from_http_error (http_error : HTTPError ) -> TidalAPIError | None :
67+ def http_error_to_tidal_error (http_error : HTTPError ) -> TidalAPIError | None :
6868 response = http_error .response
6969
7070 if response .content :
Original file line number Diff line number Diff line change 3434
3535import requests
3636
37- from tidalapi .session import from_http_error
37+ from tidalapi .exceptions import http_error_to_tidal_error
3838from tidalapi .types import JsonObj
3939
4040log = logging .getLogger (__name__ )
@@ -154,7 +154,7 @@ def request(
154154 except requests .HTTPError as e :
155155 log .info ("Request resulted in exception {}" .format (e ))
156156 self .latest_err_response = request
157- if err := from_http_error (e ):
157+ if err := http_error_to_tidal_error (e ):
158158 raise err from e
159159 else :
160160 raise # re raise last error, usually HTTPError
You can’t perform that action at this time.
0 commit comments