Skip to content

Commit

Permalink
Fixed app crashing due to random errors during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
AmberSahdev committed Nov 10, 2024
1 parent 280ee96 commit e2b1ed6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def __init__(self):
self.llm = LLM()
except OpenAIError as e:
self.status_queue.put(f'Set your OpenAPI API Key in Settings and Restart the App. Error: {e}')
except Exception as e:
self.status_queue.put(f'An error occurred during startup. Please fix and restart the app. Error: {e}')

def execute_user_request(self, user_request: str) -> None:
self.stop_previous_request()
Expand Down

0 comments on commit e2b1ed6

Please sign in to comment.