mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 17:57:38 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user