nvpy
nvpy copied to clipboard
"Failed to execute script start-nvpy" after syncing notes
I installed nvpy on Windows 10, after RespophNotes stopped being able to connect to SimpleNote. I started it, it downloaded a lot of my notes, and then it exited saying "Failed to execute script start-nvpy". Now it won't start - it gives the same error each time.
I got the source and debugged it.
Line 73 in utils.py is thrown an exception for the timestamps in several of my notes: dt = datetime.datetime.fromtimestamp(timestamp)
One of the invalid values is "1375739839373.0".
This seems to work around it:
>> try:
dt = datetime.datetime.fromtimestamp(timestamp)
>> except Exception as e:
>> logging.error('util.py: Error getting time stamp %s: %s' % (timestamp, str(e)))
>> dt = datetime.datetime.now()