From d03b13a684310688a5c5c4d337756ba671b283e8 Mon Sep 17 00:00:00 2001 From: Stanislav Seletskiy Date: Wed, 21 Oct 2015 13:40:49 +0600 Subject: [PATCH] review: add comment about snippet_code --- pythonx/UltiSnips/snippet_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pythonx/UltiSnips/snippet_manager.py b/pythonx/UltiSnips/snippet_manager.py index 4e03ec5..408b6be 100644 --- a/pythonx/UltiSnips/snippet_manager.py +++ b/pythonx/UltiSnips/snippet_manager.py @@ -68,6 +68,9 @@ Following is the full stack trace: """ msg += traceback.format_exc() + # snippet_code comes from _python_code.py, it's set manually for + # providing error message with stacktrace of failed python code + # inside of the snippet. if hasattr(e, 'snippet_code'): _, _, tb = sys.exc_info() tb_top = traceback.extract_tb(tb)[-1]