Skip to content

Commit e641dcb

Browse files
committed
fixes warning
1 parent 30a1808 commit e641dcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

refinery/units/sinks/ppxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def indent(element: Element, level=0, more_sibs=False):
6161
if more_sibs:
6262
element.tail += pad
6363

64-
if root := dom.getroot():
64+
if (root := dom.getroot()) is not None:
6565
indent(root)
6666

6767
with io.BytesIO() as output:

0 commit comments

Comments
 (0)