From 38ae7730fa74474b5c417f1d58dad93ef879f397 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 27 Dec 2015 12:40:58 +0100 Subject: [PATCH] taskwiki: The errors module should be available outside exception handler --- taskwiki/taskwiki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taskwiki/taskwiki.py b/taskwiki/taskwiki.py index c97fa6e..39852fa 100644 --- a/taskwiki/taskwiki.py +++ b/taskwiki/taskwiki.py @@ -9,9 +9,9 @@ import vim # pylint: disable=F0401 BASE_DIR = vim.eval("s:plugin_path") sys.path.insert(0, os.path.join(BASE_DIR, 'taskwiki')) +import errors # Handle exceptions without traceback, if they're TaskWikiException def output_exception(exception_type, value, tb): - import errors if exception_type is errors.TaskWikiException: print(unicode(value), file=sys.stderr) else: