When loading an addon, the loading will succeed even if the load() function fails to execute.
When unloading an addon, the unload will fail if the unload() function raises an exception.
Shouldn't that be the other way around? Loading should not succeed if the load function contains errors.
This would cause the addon to fail loading, while load would not:
Syntax: Select all
def MyLoad():
do_something_causing_exceptions()
MyLoad()
Similarily, if the unloading fails, the addon should be removed still (so at the very least that you can load it again - right now you need to restart the server or remove it manually to get it working again)