Skip to content

Commit

Permalink
Catch KeyboardInterrupt (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby authored May 19, 2024
1 parent 6be2167 commit 1733a93
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/model_explorer_onnx/bin/onnxvis.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@

def main():
# Run model explorer
subprocess.run(
[
"model-explorer",
"--extensions",
"model_explorer_onnx",
*sys.argv[1:],
]
)
try:
subprocess.run(
[
"model-explorer",
"--extensions",
"model_explorer_onnx",
*sys.argv[1:],
]
)
except KeyboardInterrupt:
pass


if __name__ == "__main__":
Expand Down

0 comments on commit 1733a93

Please sign in to comment.