nvpy icon indicating copy to clipboard operation
nvpy copied to clipboard

"Failed to execute script start-nvpy" after syncing notes

Open malcolmwood76 opened this issue 3 years ago • 1 comments

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".

malcolmwood76 avatar Jan 14 '22 09:01 malcolmwood76

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()

malcolmwood76 avatar Jan 14 '22 09:01 malcolmwood76