From 13b1126b903dacbb6a9d92c42979f579bc5dd117 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 8 Dec 2016 16:03:22 +0000 Subject: [PATCH] Guard against no progress_callback in intel layer. --- volatility/framework/layers/intel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/volatility/framework/layers/intel.py b/volatility/framework/layers/intel.py index 3e99352d0..6f3d34f4d 100644 --- a/volatility/framework/layers/intel.py +++ b/volatility/framework/layers/intel.py @@ -162,7 +162,8 @@ class Intel(interfaces.layers.TranslationLayerInterface): previous = None range_start = current = min_address while current <= max_address: - progress_callback(round((current - min_address) * 100 / total_size, 3)) + if progress_callback: + progress_callback(round((current - min_address) * 100 / total_size, 3)) try: address, page_size = self._translate(current) if (previous, address) in scanned or not context.memory[self._base_layer].is_valid(address):