Skip to content

Commit e470d45

Browse files
committed
prevent max over empty iterator
1 parent c656a60 commit e470d45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

refinery/units/formats/office/docmeta.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,6 @@ def interpret(value: str | dict):
8484
for name, value in contents.items():
8585
contents[name] = interpret(value)
8686

87+
if not result:
88+
return None
8789
yield from ppjson(tabular=self.args.tabular)._pretty_output(result)

0 commit comments

Comments
 (0)