python2 print does not support end=
This commit is contained in:
parent
2b45d6932b
commit
8ce2e3149a
1 changed files with 4 additions and 1 deletions
|
@ -183,7 +183,10 @@ class API(object):
|
||||||
print("\ninterrupted by user.")
|
print("\ninterrupted by user.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
except:
|
except:
|
||||||
|
try:
|
||||||
print("uploading chunk failed, will try again in 5 seconds\r", end='')
|
print("uploading chunk failed, will try again in 5 seconds\r", end='')
|
||||||
|
except:
|
||||||
|
print("uploading chunk failed, will try again in 5 seconds\r")
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
data = {'result': -1}
|
data = {'result': -1}
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
Loading…
Reference in a new issue