Core: Fix errors found by LGTM

This commit is contained in:
Mike Auty
2020-11-04 20:05:12 +00:00
parent cee63ab6e8
commit ae3a97e2c7
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ class Volshell(interfaces.plugins.PluginInterface):
self.config[path_join(plugin_config_suffix, plugin.__name__, name)] = value
try:
constructed = plugins.construct_plugin(self.context, [], plugin, plugin_path, None, NullFileHandler())
constructed = plugins.construct_plugin(self.context, [], plugin, plugin_path, None, NullFileHandler)
return constructed.run()
except exceptions.UnsatisfiedException as excp:
print("Unable to validate the plugin requirements: {}\n".format([x for x in excp.unsatisfied]))
@@ -231,7 +231,6 @@ class DataLayerInterface(interfaces.configuration.ConfigurableInterface, metacla
if progress_callback is not None and not callable(progress_callback):
raise TypeError("Progress_callback is not callable")
scanner = scanner
scanner.context = context
scanner.layer_name = self.name