addon_utils: improve docstrings

Also make error handler take the exception as its argument.
This commit is contained in:
Campbell Barton
2016-01-07 23:33:51 +11:00
parent 3e530f9439
commit 3ad1e4fab9
2 changed files with 24 additions and 14 deletions

View File

@@ -1782,7 +1782,7 @@ class WM_OT_addon_enable(Operator):
err_str = ""
def err_cb():
def err_cb(ex):
import traceback
nonlocal err_str
err_str = traceback.format_exc()
@@ -1826,7 +1826,7 @@ class WM_OT_addon_disable(Operator):
err_str = ""
def err_cb():
def err_cb(ex):
import traceback
nonlocal err_str
err_str = traceback.format_exc()