Skip to content

Commit 624bf9c

Browse files
committed
api: document malformed retry header fallback
1 parent 63550a2 commit 624bf9c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bin/youtube-autoencoder-api

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ def http_json(
248248
try:
249249
retry_after = float(retry_after_value)
250250
except ValueError:
251-
pass
251+
# Retry-After is optional; malformed hints fall back to class-based backoff.
252+
retry_after = None
252253
raise YouTubeApiError(
253254
status=exc.code,
254255
reasons=reasons,

0 commit comments

Comments
 (0)