fix(board): Handle OSError when weasyprint system libs missing
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
WeasyPrint raises OSError (not ImportError) when pango/cairo system libraries are not installed. Catch both to allow graceful fallback. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a5196bc1e2
commit
61e4bec5b3
@ -32,7 +32,7 @@ from datetime import date, time
|
||||
try:
|
||||
import weasyprint
|
||||
HAS_WEASYPRINT = True
|
||||
except ImportError:
|
||||
except (ImportError, OSError):
|
||||
HAS_WEASYPRINT = False
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user