From 2a99a5378405992d1683841015d34eeff122b899 Mon Sep 17 00:00:00 2001 From: Andrew Case Date: Sun, 9 Mar 2025 22:17:39 +0000 Subject: [PATCH] Make exception throwing consistent in the PDB gathering API. Avoid returning an empty symbol_table name when the PDB cannot be downloaded. --- volatility3/framework/symbols/windows/pdbutil.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/volatility3/framework/symbols/windows/pdbutil.py b/volatility3/framework/symbols/windows/pdbutil.py index c2084ea25..ea96b0bf8 100644 --- a/volatility3/framework/symbols/windows/pdbutil.py +++ b/volatility3/framework/symbols/windows/pdbutil.py @@ -411,7 +411,9 @@ class PDBUtility(interfaces.configuration.VersionableInterface): ) if symbol_table_name is None: - raise exceptions.VolatilityException(f"Symbol table could not be reconstructed for module {pdb_name}") + raise exceptions.VolatilityException( + f"Symbol table could not be reconstructed for module {pdb_name}" + ) return symbol_table_name