Skip to content

Commit

Permalink
Fix: session not existing error
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninoLorenzo committed Jul 2, 2024
1 parent be20b3c commit 73cfd0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ai-ops-cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def load_session(self):
response.raise_for_status()

body = response.json()
if 'success' in body:
self.console.print(f'No session for {session_id}', style='red')

sid = body['sid']
name = body['name']
self.current_session = {'sid': sid, 'name': name}
Expand Down

0 comments on commit 73cfd0f

Please sign in to comment.