File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1618,7 +1618,8 @@ def execute_graphql(
1618
1618
1619
1619
retry = True
1620
1620
resp = None
1621
- while retry :
1621
+ start_time = time .time ()
1622
+ while retry and time .time () - start_time < self .config .max_retry_duration :
1622
1623
retry = self .retry_on_failure
1623
1624
try :
1624
1625
resp = self ._post (url = url , payload = payload , headers = headers , timeout = timeout )
@@ -1642,6 +1643,8 @@ def execute_graphql(
1642
1643
errors = response .get ("errors" , [])
1643
1644
messages = [error .get ("message" ) for error in errors ]
1644
1645
raise AuthenticationError (" | " .join (messages )) from exc
1646
+ if exc .response .status_code == 404 :
1647
+ raise URLNotFoundError (url = url )
1645
1648
1646
1649
if not resp :
1647
1650
raise Error ("Unexpected situation, resp hasn't been initialized." )
You can’t perform that action at this time.
0 commit comments