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

Bug fix.

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