Skip to content

Commit

Permalink
Catch other exceptions, so conversation history isn't lost
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Aug 19, 2024
1 parent 7f68621 commit b4ed60a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/claude.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ def handle_command(command: str) -> None:
console.print()
except KeyboardInterrupt:
console.print("\n\nDiscarding last turn.\n", style="info")
except Exception:
console.print_exception()


if __name__ == "__main__":
Expand Down

0 comments on commit b4ed60a

Please sign in to comment.