Skip to content

Commit

Permalink
Fix rare KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann authored and rwols committed Jul 14, 2023
1 parent 75bd043 commit 31945a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def _register_async(self) -> None:
view_id = view.id()
if view_id == self_id:
continue
listeners = list(sublime_plugin.view_event_listeners[view_id])
listeners = list(sublime_plugin.view_event_listeners.get(view_id, []))
for listener in listeners:
if isinstance(listener, DocumentSyncListener):
debug("also registering", listener)
Expand Down

0 comments on commit 31945a6

Please sign in to comment.