mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
taskwiki: The errors module should be available outside exception handler
This commit is contained in:
parent
3e7275752e
commit
38ae7730fa
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue