cpbotha / nvpy

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
Other
849 stars 114 forks source link

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

Open malcolmwood76 opened 2 years ago

malcolmwood76 commented 2 years ago

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 commented 2 years ago

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