Commit 5757c8b4 authored by Chris Lamb's avatar Chris Lamb 👀
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
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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",