From bdee51fef0ef4a2b1fd928eb44f29876bba4c060 Mon Sep 17 00:00:00 2001 From: xabiugarte Date: Tue, 22 Oct 2019 14:09:29 -0400 Subject: [PATCH] Check progress_callback is not None before call Followed the same approach as in volatility/framework/symbols/windows/pdbconv.py --- volatility/framework/automagic/symbol_cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/volatility/framework/automagic/symbol_cache.py b/volatility/framework/automagic/symbol_cache.py index 454e277d1..264960704 100644 --- a/volatility/framework/automagic/symbol_cache.py +++ b/volatility/framework/automagic/symbol_cache.py @@ -91,7 +91,8 @@ class SymbolBannerCache(interfaces.automagic.AutomagicInterface): if total > 0: vollog.info("Building {} caches...".format(self.os)) for current in range(total): - progress_callback(current * 100 / total, "Building {} caches".format(self.os)) + if progress_callback is not None: + progress_callback(current * 100 / total, "Building {} caches".format(self.os)) isf_url = cacheables[current] isf = None