Skip to content
Snippets Groups Projects
Commit 98383a84 authored by piotrmp's avatar piotrmp
Browse files

Bug fix.

parent 11b58400
Branches
Tags
1 merge request!1Migration to UD 2.11
...@@ -47,7 +47,7 @@ def download_archive1_from_oscar(language, path, OSCAR_LOGIN, OSCAR_PASSWORD, re ...@@ -47,7 +47,7 @@ def download_archive1_from_oscar(language, path, OSCAR_LOGIN, OSCAR_PASSWORD, re
return return
except HTTPError as err: except HTTPError as err:
error = err error = err
if i == retry - 1 or err.code<500: if i == retry - 1 or error.code<500:
raise error raise error
secs = ((i + 1) * (i + 1) * (i + 1) * 15) secs = ((i + 1) * (i + 1) * (i + 1) * 15)
print("[Got " + str(error.code) + ", retrying after " + str(secs) + " seconds...]") print("[Got " + str(error.code) + ", retrying after " + str(secs) + " seconds...]")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment