prefer SymbolError to TypeError

This commit is contained in:
Abyss Watcher
2024-03-04 20:11:17 +01:00
parent 2f0bb6b297
commit 403804431a
+2 -2
View File
@@ -3,7 +3,7 @@
#
import logging
from volatility3.framework import interfaces, renderers
from volatility3.framework import interfaces, renderers, exceptions
from volatility3.framework.configuration import requirements
from volatility3.framework.objects import utility
@@ -40,7 +40,7 @@ class Dmesg(interfaces.plugins.PluginInterface):
kernel = context.modules[kernel_module_name]
if not kernel.has_symbol("msgbufp"):
raise TypeError(
raise exceptions.SymbolError(
'The provided symbol table does not include the "msgbufp" symbol. This means you are either analyzing an unsupported kernel version or that your symbol table is corrupt.'
)