xml-cli
xml-cli copied to clipboard
Chain import exceptions for tools.restricted.EnableXmlCli and tools.EnableXmlCli
trafficstars
While trying to fo:
from .tools import EnableXmlCli as exc
If the import statement fails the log message is not being displayed since the exception has already being caught, e.g.:
The expected behavior should be like this:
From a real-world test using python3.12
Behavior with this patch: