Skip to content

Commit

Permalink
Merge pull request #70 from Starou/bug-fix-pylint
Browse files Browse the repository at this point in the history
Bugfix set_attribute with None instead of empty-string.
  • Loading branch information
Starou authored Apr 26, 2023
2 parents 58d5199 + 899f4ad commit f6b8903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simple_idml/idml.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def _import_node(source_node, at=None, element_id=None, story=None, ignoreconten

@use_working_copy
def import_pdf(self, pdf_path, at, crop="CropContentVisibleLayers", page_number=1):
self.set_attributes(at, {'href': pdf_path})
self.set_attributes(at, {'href': f'{pdf_path}'})
spread = self.get_spread_object_by_xpath(at)

# spread_elt is a <Rectangle> that will host the <PDF>.
Expand Down

0 comments on commit f6b8903

Please sign in to comment.