Skip to content

Commit

Permalink
Missed one instance of updated behavior from ElementTree truthyness c…
Browse files Browse the repository at this point in the history
…heck.
  • Loading branch information
bbassett-tibco committed Jun 6, 2024
1 parent 0f83611 commit 1178568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotfire/spk.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def _create_module(self) -> ElementTree.Element:
def _build_payload(self, metadata: ElementTree.Element, module: ElementTree.Element, payload_dest: str) -> None:
"""Build the main payload archive for the SPK package."""
metadata_files = metadata.find("Files")
if not metadata_files:
if metadata_files is None:
raise RuntimeError("no <Files> element found")

with cabfile.CabFile(payload_dest) as payload:
Expand Down

0 comments on commit 1178568

Please sign in to comment.