Skip to content

Commit

Permalink
remove catchall error
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Cheong committed Mar 24, 2023
1 parent 45b317b commit 8d37da5
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/revChatGPT/V1.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,16 +888,6 @@ def configure() -> dict:
return config


def exit() -> NoReturn:
"""
Exit the program
"""
import sys

print("Exiting program...")
sys.exit(0)


@logger(is_timed=False)
def main(config: dict) -> NoReturn:
"""
Expand Down Expand Up @@ -979,9 +969,6 @@ def handle_commands(command: str) -> bool:
print()
except (KeyboardInterrupt, EOFError):
exit()
except BaseException as e:
error = t.CommandError("command line program unknown error")
raise error from e


if __name__ == "__main__":
Expand Down

0 comments on commit 8d37da5

Please sign in to comment.