From 1db492203398824ca237d8793c741ae69bf8a5b6 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Fri, 24 Mar 2017 01:01:52 +0000 Subject: [PATCH] Ensure we mimic python's errors as closely as possible. --- volatility/framework/symbols/intermed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/volatility/framework/symbols/intermed.py b/volatility/framework/symbols/intermed.py index 21d52bc61..898a37c69 100644 --- a/volatility/framework/symbols/intermed.py +++ b/volatility/framework/symbols/intermed.py @@ -102,7 +102,8 @@ class IntermediateSymbolTable(interfaces.symbols.SymbolTableInterface): if isf_url: break else: - raise ValueError("ISF file {} could not be found in standard search paths".format(relative_isf)) + raise FileNotFoundError( + "ISF path fragment {} could not be found in standard search paths".format(relative_isf)) return cls(context, config_path, name, isf_url, native_types) def _closest_version(self, version, versions):