Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 562f452

Browse files
Fix uncaught exception in KRepl (#113)
Co-authored-by: devops <[email protected]>
1 parent 4d3ee3f commit 562f452

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.67
1+
0.1.68

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "pyk"
7-
version = "0.1.67"
7+
version = "0.1.68"
88
description = ""
99
authors = [
1010
"Runtime Verification, Inc. <[email protected]>",

src/pyk/krepl/repl.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,8 @@ def __init__(self, definition_dir: Path):
175175
@with_argparser(_load_parser())
176176
@with_category(BaseRepl.CAT_DEBUG)
177177
def do_load(self, args: Namespace) -> None:
178-
self.interpreter = KInterpreter(self.definition_dir, args.program)
179-
self.state = self.interpreter.init_state()
178+
try:
179+
self.interpreter = KInterpreter(self.definition_dir, args.program)
180+
self.state = self.interpreter.init_state()
181+
except ReplError as err:
182+
self.poutput(err)

0 commit comments

Comments
 (0)