Skip to content

Commit

Permalink
[useblocks#70] retry also in CalledProcessError due to sometimes GLib…
Browse files Browse the repository at this point in the history
…:ERROR:../glib-2.70.2/glib/gthread.c:814:g_thread_proxy: assertion failed: (data)
  • Loading branch information
kreuzberger authored and danwos committed Aug 23, 2023
1 parent 6203b9b commit da2ad00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx_simplepdf/builders/simplepdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def finish(self) -> None:
else:
print(line)
break
except subprocess.TimeoutExpired:
logger.warning(f"TimeoutExpired in weasyprint, retrying")
except: # subprocess.TimeoutExpired or subprocess.CalledProcessError
logger.warning(f"exception in weasyprint, retrying")

if n == retries - 1:
raise RuntimeError(f"maximum number of retries {retries} failed in weasyprint")
Expand Down

0 comments on commit da2ad00

Please sign in to comment.