Skip to content

Commit bc2a601

Browse files
author
gkowalc
committed
added new get_space_export method + small refactor
1 parent b1698ad commit bc2a601

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

atlassian/confluence.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2732,6 +2732,7 @@ def get_atl_request(url: str):
27322732
while running_task:
27332733
try:
27342734
progress_response = self.get(poll_url)
2735+
log.info("Space" + space_key + " export status: " + progress_response["message"])
27352736
if progress_response["complete"]:
27362737
parsed_html = BeautifulSoup(progress_response["message"], "html.parser")
27372738
download_url = parsed_html.find("a", {"class": "space-export-download-path"}).get("href")
@@ -2743,7 +2744,7 @@ def get_atl_request(url: str):
27432744
if combined_url.count("/wiki") > 1:
27442745
combined_url = combined_url.replace("/wiki/wiki", "/wiki")
27452746
return combined_url
2746-
time.sleep(15)
2747+
time.sleep(30)
27472748
except Exception as e:
27482749
raise ApiError(
27492750
"Encountered error during space export status check from space " + space_key, reason=e

0 commit comments

Comments
 (0)