Antonio Cheong
commited on
Commit
·
41a5bc2
1
Parent(s):
900675e
Fix error handler
Browse files- src/EdgeGPT.py +2 -2
src/EdgeGPT.py
CHANGED
@@ -133,10 +133,10 @@ class Conversation:
|
|
133 |
# Return response
|
134 |
try:
|
135 |
self.struct = response.json()
|
136 |
-
except json.decoder.JSONDecodeError:
|
137 |
raise Exception(
|
138 |
"Authentication failed. You have not been accepted into the beta."
|
139 |
-
) from
|
140 |
|
141 |
|
142 |
class ChatHub:
|
|
|
133 |
# Return response
|
134 |
try:
|
135 |
self.struct = response.json()
|
136 |
+
except json.decoder.JSONDecodeError as exc:
|
137 |
raise Exception(
|
138 |
"Authentication failed. You have not been accepted into the beta."
|
139 |
+
) from exc
|
140 |
|
141 |
|
142 |
class ChatHub:
|