From 454635a6a1b93154e38eb761ac1e7e403f165a81 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 10 Oct 2023 11:15:39 +0200 Subject: [PATCH] fix demo retries --- src/depot/publishers/woblink.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/depot/publishers/woblink.py b/src/depot/publishers/woblink.py index f77d6185..c3ec7a52 100644 --- a/src/depot/publishers/woblink.py +++ b/src/depot/publishers/woblink.py @@ -565,6 +565,12 @@ class Woblink(BasePublisher): ).json()['jobId'] try: file_id = self.wait_for_job(job_id) + if check: + self.wait_for_job( + self.session.get( + self.CHECK_DEMO_URL % (file_format, woblink_id) + ).json()['jobId'] + ) except AssertionError: if percent < 50: percent += 10 @@ -573,12 +579,6 @@ class Woblink(BasePublisher): else: break - if check: - self.wait_for_job( - self.session.get( - self.CHECK_DEMO_URL % (file_format, woblink_id) - ).json()['jobId'] - ) return file_id def send_epub(self, woblink_id, doc, gallery_path, fundraising=None): -- 2.20.1