We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28095cc commit 4e9e295Copy full SHA for 4e9e295
1 file changed
scripts/evtx_record_template.py
@@ -18,7 +18,11 @@ def main():
18
19
with evtx.Evtx(args.evtx) as log:
20
r = log.get_record(args.record)
21
- print(e_views.evtx_template_readable_view(r.root()))
+ if r is None:
22
+ print("error: record not found")
23
+ return -1
24
+ else:
25
+ print(e_views.evtx_template_readable_view(r.root()))
26
27
28
if __name__ == "__main__":
0 commit comments