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

Inline the RequiredToolNotFound.get_package method; only used once.

parent 5840c56f
No related branches found
No related tags found
No related merge requests found
......@@ -31,16 +31,13 @@ class RequiredToolNotFound(Exception):
def __init__(self, command):
self.command = get_tool_name(command)
def get_package(self):
return get_package_provider(self.command)
def get_comment(self, infix=''):
xs = [
"'{}' not available in path.".format(self.command),
infix,
]
x = self.get_package()
x = get_package_provider(self.command)
if x:
xs.append(
"Install the '{}' package to get a better output.".format(x)
......
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