williballenthin / python-evtx

Pure Python parser for Windows Event Log files (.evtx)
Apache License 2.0
732 stars 166 forks source link

r.root() error #55

Closed ghost closed 5 years ago

ghost commented 5 years ago

In evtx_record_template.py Runtime error:

print(e_views.evtx_template_readable_view(r.root())) AttributeError: 'NoneType' object has no attribute 'root'

How do I solve this?

williballenthin commented 5 years ago

this happens because the given record is not found. i'll update the script to print a better error message.