diff --git a/volatility/cli/volshell/generic.py b/volatility/cli/volshell/generic.py index 5ec80a61c..4dd30dc2a 100644 --- a/volatility/cli/volshell/generic.py +++ b/volatility/cli/volshell/generic.py @@ -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])) diff --git a/volatility/framework/interfaces/layers.py b/volatility/framework/interfaces/layers.py index f5670bb8a..7ef23e533 100644 --- a/volatility/framework/interfaces/layers.py +++ b/volatility/framework/interfaces/layers.py @@ -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