This commit is contained in:
jxxghp
2023-10-12 08:40:56 +08:00
parent e835feb056
commit ac3009d58f
2 changed files with 112 additions and 87 deletions

View File

@ -172,6 +172,9 @@ class TMDb(object):
else:
req = self.request(method, url, data, json)
if req is None:
raise TMDbException("Failed to establish a new connection: no response from the server.")
headers = req.headers
if "X-RateLimit-Remaining" in headers: