Skip to content
Commits on Source (2)
......@@ -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",
......
......@@ -718,7 +718,8 @@ class HTMLPresenter(Presenter):
path = score[3]
diff_path = output_diff_path(path)
pagename = md5(diff_path)
logger.debug('html output for %s', diff_path)
if diff_path:
logger.debug('html output for %s', diff_path)
ancestor = ancestors.pop(node, None)
assert ancestor in path or (
......