Skip to content

Commit 80005b3

Browse files
committed
session: print traceback also for notification handlers
1 parent 388b3ee commit 80005b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neovim/msgpack_rpc/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ def handler():
153153
try:
154154
self._notification_cb(name, args)
155155
debug('greenlet %s finished executing', gr)
156-
except Exception as e:
156+
except Exception:
157157
warn("error caught while processing notification '%s %s': %s",
158-
name, args, e)
158+
name, args, format_exc())
159159
debug('greenlet %s is now dying...', gr)
160160
self._greenlets.remove(gr)
161161

0 commit comments

Comments
 (0)