devgc / EventMonkey

A Windows Event Processing Utility
Apache License 2.0
46 stars 3 forks source link

WindowsEventManager.py error #11

Open ormojo23 opened 7 years ago

ormojo23 commented 7 years ago

encountered a situation where jrec was None, which caused the sql_insert() at line 703 to throw an unhandled exception. I know enough Python to have inserted

if jrec is None: return

before line 693, which fixed the issue I was having. Unfortunately I can't share the event log that caused the problem.

thanks for a very useful tool!

devgc commented 7 years ago

Can you post the exact error message? The problem with returning if jrec is None is that it can be common to have jrec as None for recovered event logs because the record is corrupted, But you could still have a partial record recovered and thus still have something to insert into the database.