Skip to content

Commit

Permalink
Guard against None window
Browse files Browse the repository at this point in the history
  • Loading branch information
eerohele committed Dec 12, 2023
1 parent 2baae7b commit a6b25ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ def make_options(self, options, point, dialect, auto_switch_namespace):

def rpc_handler(self, handler):
progress.stop()
self.view.window().status_message("✓ Evaluating... done.")

if window := self.view.window():
window.status_message("✓ Evaluating... done.")

if handler is not None:
handler()
Expand Down

0 comments on commit a6b25ab

Please sign in to comment.