Check progress_callback is not None before call

Followed the same approach as in
    volatility/framework/symbols/windows/pdbconv.py
This commit is contained in:
xabiugarte
2019-10-23 09:56:55 +01:00
committed by ikelos
parent ce2b83fc34
commit bdee51fef0
@@ -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