summaryrefslogtreecommitdiff
path: root/python/examples/kaitai/view.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/kaitai/view.py')
-rw-r--r--python/examples/kaitai/view.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/kaitai/view.py b/python/examples/kaitai/view.py
index a30140c0..75952b9b 100644
--- a/python/examples/kaitai/view.py
+++ b/python/examples/kaitai/view.py
@@ -137,7 +137,7 @@ class KaitaiView(QScrollArea, View):
# parse the file using Kaitai, construct the TreeWidget
def kaitaiParse(self, ksModuleName=None):
- #log_debug('kaitaiParse() with len(bv)=%d and bv.file.filename=%s' % (len(self.binaryView), self.binaryView.file.filename))
+ log.log_debug('kaitaiParse() with len(bv)=%d and bv.file.filename=%s' % (len(self.binaryView), self.binaryView.file.filename))
if len(self.binaryView) == 0:
return
@@ -155,7 +155,7 @@ class KaitaiView(QScrollArea, View):
tree = kshelpers.buildQtree(parsed)
except Exception as e:
log.log_error('kaitai module %s threw exception, check file type' % ksModuleName)
- true = None
+ tree = None
else:
tree = kshelpers.buildQtree(parsed)