mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-13 21:27:39 +02:00
Fix up exception catching with no exception specified.
This commit is contained in:
@@ -40,7 +40,7 @@ class Strings(interfaces.plugins.PluginInterface):
|
||||
offset, string = self._parse_line(line)
|
||||
try:
|
||||
revmap_list = [name + ":" + hex(offset) for (name, offset) in revmap[offset >> 12]]
|
||||
except:
|
||||
except (IndexError, KeyError):
|
||||
revmap_list = ["FREE MEMORY"]
|
||||
yield (0, (str(string, 'latin-1'), format_hints.Hex(offset), ", ".join(revmap_list)))
|
||||
except ValueError:
|
||||
|
||||
@@ -311,7 +311,7 @@ class UserAssist(interfaces_plugins.PluginInterface):
|
||||
self.config['primary'],
|
||||
self.config['nt_symbols'],
|
||||
filter = "ntuser.dat")]
|
||||
except:
|
||||
except ImportError:
|
||||
vollog.warning("Unable to import windows.hivelist plugin, please provide a hive offset")
|
||||
raise ValueError("Unable to import windows.hivelist plugin, please provide a hive offset")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user