Skip to content
Snippets Groups Projects
Commit 5757c8b4 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Log a debug-level message if we cannot open a file as container due to a...

Log a debug-level message if we cannot open a file as container due to a missing tool to assist in diagnosing issues. (Re: #86)
parent b709d89b
No related branches found
No related tags found
No related merge requests found
Pipeline #102296 passed
......@@ -243,7 +243,12 @@ class File(metaclass=abc.ABCMeta):
)
try:
self._as_container = self.__class__.CONTAINER_CLASS(self)
except RequiredToolNotFound:
except RequiredToolNotFound as exc:
logger.debug(
"Cannot instantiate a %s; missing tool %s",
type_name(self.__class__.CONTAINER_CLASS),
exc.command,
)
return None
logger.debug(
"Returning a %s for %s",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment