mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-08-16 10:00:24 +03:00
Fix upload to github not aborting for uploads that fail with protocol errors rather than failure responses
This commit is contained in:
parent
f7f4384876
commit
b0f552c332
@ -305,7 +305,7 @@ def make_request_with_retries(
|
||||
self.error(failure_msg, 'with error:', e)
|
||||
self.error(f'Retrying after {sleep_between_tries} seconds')
|
||||
time.sleep(sleep_between_tries)
|
||||
return None
|
||||
raise SystemExit('All retries failed, giving up')
|
||||
|
||||
def patch(self, url: str, fail_msg: str, **data: str) -> None:
|
||||
self.make_request_with_retries(url, data, method='PATCH', failure_msg=fail_msg)
|
||||
|
Loading…
Reference in New Issue
Block a user