Skip to content

Commit a59bfb2

Browse files
committed
Add 503 and 504 to the default retry code set.
1 parent ff25710 commit a59bfb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notion/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def create_session(client_specified_retry=None):
3939
retry = Retry(
4040
5,
4141
backoff_factor=0.3,
42-
status_forcelist=(502,),
42+
status_forcelist=(502, 503, 504),
4343
# CAUTION: adding 'POST' to this list which is not technically idempotent
4444
method_whitelist=("POST", "HEAD", "TRACE", "GET", "PUT", "OPTIONS", "DELETE"),
4545
)

0 commit comments

Comments
 (0)