Skip to content

Commit

Permalink
Make quitting during CoqStart slightly more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
whonore committed Jun 29, 2024
1 parent 4ff765c commit e6c73e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/coqtail.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ def parse_msgs(self) -> None:
try:
msg = self.rfile.readline()
msg_id, data = json.loads(msg)
except (json.JSONDecodeError, ConnectionError):
except (json.JSONDecodeError, ConnectionError, ValueError):
# Check if channel closed
self.closed = True
break
Expand Down
4 changes: 1 addition & 3 deletions python/coqtop.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,7 @@ def interrupt(self) -> None:
self.dune.send_signal(signal.SIGTERM)
self.dune.wait()
self.dune = None
else:
if self.coqtop is None:
raise CoqtopError("Coqtop is not running.")
elif self.coqtop is not None:
self.coqtop.send_signal(signal.SIGINT)

# Current State #
Expand Down

0 comments on commit e6c73e5

Please sign in to comment.