Skip to content

Commit 1fa7ed6

Browse files
committed
chore: use distinct log message
Signed-off-by: Ben Selwyn-Smith <benselwynsmith@googlemail.com>
1 parent 1fec5c8 commit 1fa7ed6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/macaron/parsers/pomparser.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def parse_pom_string(pom_string: str) -> Element | None:
3030
# Stored here first to help with type checking.
3131
pom: Element = fromstring(pom_string)
3232
return pom
33-
except (DefusedXmlException, defusedxml.ElementTree.ParseError) as error:
33+
except defusedxml.ElementTree.ParseError as error:
3434
logger.debug("Failed to parse XML: %s", error)
35-
return None
35+
except DefusedXmlException as error:
36+
logger.debug("POM rejected due to possible security issues: %s", error)
37+
return None

0 commit comments

Comments
 (0)