Skip to content

Commit 1fcb5ff

Browse files
committed
Change to warning-level, add suggestion
1 parent c3ae55b commit 1fcb5ff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plugwise/helper.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def _find(xml_in: etree, locator: str) -> etree:
7878
if xml_in is not None:
7979
return xml_in.find(locator)
8080

81-
LOGGER.error("XML data unexpectedly not present, processing stopped!")
81+
LOGGER.warning(
82+
"XML data unexpectedly not present, processing stopped. Please retry."
83+
)
8284
raise XMLDataMissingError
8385

8486

@@ -87,7 +89,9 @@ def _findall(xml_in: etree, locator: str) -> list[etree]:
8789
if xml_in is not None:
8890
return xml_in.findall(locator)
8991

90-
LOGGER.error("XML data unexpectedly not present, processing stopped!")
92+
LOGGER.warning(
93+
"XML data unexpectedly not present, processing stopped. Please retry."
94+
)
9195
raise XMLDataMissingError
9296

9397

0 commit comments

Comments
 (0)