Skip to content

Commit

Permalink
Merge pull request #17 from akretion/fix-empty-field-errors
Browse files Browse the repository at this point in the history
avoid NoneType AttributeError with empty fields
  • Loading branch information
antoniospneto authored May 8, 2024
2 parents e7d702d + 083e860 commit 12a76be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brazilfiscalreport/danfe/danfe_basic_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def render(self):
self._content_lines = pdf.multi_cell(
w=self.w,
h=DEFAULT_HEIGHT_FONT_CONTENT,
text=self.content,
text=self.content or "",
align=align,
output=MethodReturnValue.LINES,
)
Expand Down

0 comments on commit 12a76be

Please sign in to comment.