Closed drevicko closed 7 years ago
Thanks for the contribution, but I think it's better to throw an exception (and avoid removing the file) unless explicitly told not to.
I've made this change to keep backwards compatibility. It also covers other unpickling errors, not just empty files.
You can now add force_shelf
to your plugin definitions.
as far as I can see, if your plugin fails to pickle it's shelf properly (eg: this issue), it then becomes impossible to load the plugin, as an EOF exception is thrown similar to this:
It would seem a good idea to issue a warning and fall back on starting the plugin from scratch.