Skip to content

Commit

Permalink
hotfix: regression on document generation caused by invalid html.clos…
Browse files Browse the repository at this point in the history
…e on weasyprint
  • Loading branch information
danh91 committed Dec 12, 2024
1 parent 509de68 commit ae85c0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fix

- hotfix: `ups` delivery confirmation data mapping
- hotfix: regression on document generation caused by invalid html.close on weasyprint

# Karrio 2024.12rc4

Expand Down
2 changes: 1 addition & 1 deletion modules/documents/karrio/server/documents/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def generate(
optimize_size=("fonts", "images"),
)
finally:
html.close()
lib.failsafe(lambda: html.close())

return buffer

Expand Down
2 changes: 1 addition & 1 deletion modules/documents/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="karrio.server.documents",
version="2024.12rc3",
version="2024.12rc5",
description="Multi-carrier shipping API apps module",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit ae85c0d

Please sign in to comment.