Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit 8de6431

Browse files
committed
Merge pull request #2 from bfredl/unimplemented
Don't crash on unimplemented ui messages
2 parents c991b48 + 0b3d0d5 commit 8de6431

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

neovim_gui/ui_bridge.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ def apply_updates():
8888
# l = [','.join([str(a) for a in args])
8989
# for args in update[1:]]
9090
# print >> sys.stderr, update[0], ' '.join(l)
91-
handler = getattr(self._ui, '_nvim_' + update[0])
92-
for args in update[1:]:
93-
handler(*args)
91+
try:
92+
handler = getattr(self._ui, '_nvim_' + update[0])
93+
except AttributeError:
94+
pass
95+
else:
96+
for args in update[1:]:
97+
handler(*args)
9498
except:
9599
self._error = format_exc()
96100
self._call(self._nvim.quit)

0 commit comments

Comments
 (0)