Skip to content

Commit

Permalink
Fix some strange behavior of API
Browse files Browse the repository at this point in the history
  • Loading branch information
wiro committed Mar 21, 2019
1 parent 29ee50b commit 826f281
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def project_export(self, project_path):
# Check export status
if "export_status" in json.keys():
s = json["export_status"]
if s == "finished":
# Export finished and _links appear in response
if s == "finished" and "_links" in json.keys():
status_export = True
break
else:
Expand All @@ -155,7 +156,7 @@ def project_export(self, project_path):
break

# Wait litle bit
time.sleep(2)
time.sleep(1)

if status_export:
if "_links" in json.keys():
Expand Down Expand Up @@ -214,7 +215,7 @@ def project_import(self, project_path, filepath):
break

# Wait litle bit
time.sleep(2)
time.sleep(1)

if status_import:
return True
Expand Down

0 comments on commit 826f281

Please sign in to comment.