mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-09 07:05:08 +02:00
Missing f in format string
This commit is contained in:
@ -44,7 +44,7 @@ def waitUntilPublished(url, output) -> None:
|
|||||||
if r.status_code == 200:
|
if r.status_code == 200:
|
||||||
break
|
break
|
||||||
if (time.time() - startTime)/60 > 20:
|
if (time.time() - startTime)/60 > 20:
|
||||||
raise Exception("failed to get url={url} (startTime={startTime}, endTime={time.time()}), status_code=" + str(r.status_code) + " body=" + str(r.content))
|
raise Exception(f"failed to get url={url} (startTime={startTime}, endTime={time.time()}), status_code=" + str(r.status_code) + " body=" + str(r.content))
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
with open(output, 'wb') as f:
|
with open(output, 'wb') as f:
|
||||||
f.write(r.content)
|
f.write(r.content)
|
||||||
|
Reference in New Issue
Block a user