Nachtalb / more-upload-stats

More detailed upload statistics for Nicotine+
https://more-upload-stats.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
13 stars 1 forks source link

Error thrown on loading the plugin #5

Closed deafwired closed 3 months ago

deafwired commented 1 year ago

When i enable more-upload-stats it gives me the error in the image below, I don't remember getting this error until recently, I'm also unsure what the mysys64 part is and where it comes from. image

Nachtalb commented 3 months ago

I haven't used nicotine+ in a while, I will try to look into it in a timley manner (by earliest start of next week)

deafwired commented 3 months ago

i recreated your project for a school assignment, but i think mine is slightly broken

Nachtalb commented 3 months ago

Seems like the plugin statistics have gone bye bye 👋 - welp. This error occurs if there is an empty stats file. The plugin automatically creates backups for such cases. You find the backup path in the settings of the plugin. You can take the latest backup file and replace the plugin/build/stats.json with the backup file. And it should work again.

ℹ️ Notice to me, better error handling and tell the user what's going on.

Nachtalb commented 3 months ago

I just uploaded the a new version of the plugin that has better error handling so this ticket is done and dusted https://github.com/Nachtalb/more-upload-stats/releases/tag/v3.0.0