Skip to content

Commit 7192730

Browse files
committed
Layers: Fix exception message
Updates the exception message to report the correct dependency instead of the layer name itself. Instead of reporting the actual dependency, it was reporting, for example 'Layer layer_name is depended upon by layer_name'.
1 parent 58c8de6 commit 7192730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

volatility3/framework/interfaces/layers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ def del_layer(self, name: str) -> None:
678678
if name in self._layers[layer].dependencies:
679679
raise exceptions.LayerException(
680680
self._layers[layer].name,
681-
f"Layer {self._layers[layer].name} is depended upon by {layer}",
681+
f"Layer {name} is depended upon by {layer}",
682682
)
683683
# Otherwise, wipe out the layer
684684
self._layers[name].destroy()

0 commit comments

Comments
 (0)