Fix up exception catching with no exception specified.

This commit is contained in:
Mike Auty
2018-08-30 00:36:32 +01:00
parent fe9a1617c9
commit 93607b2586
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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: