Spaces:
Sleeping
Sleeping
Update v2_gpt.py
Browse files
v2_gpt.py
CHANGED
|
@@ -213,8 +213,7 @@ def main() -> None:
|
|
| 213 |
|
| 214 |
try:
|
| 215 |
resp = send_channel_message(client, reply)
|
| 216 |
-
if 200 <= resp.status_code < 300:
|
| 217 |
-
else:
|
| 218 |
log("SEND-NG", f"status={resp.status_code} body={resp.text[:300]}")
|
| 219 |
except Exception as exc:
|
| 220 |
log("SEND-ERR", f"{exc!r}")
|
|
|
|
| 213 |
|
| 214 |
try:
|
| 215 |
resp = send_channel_message(client, reply)
|
| 216 |
+
if not 200 <= resp.status_code < 300:
|
|
|
|
| 217 |
log("SEND-NG", f"status={resp.status_code} body={resp.text[:300]}")
|
| 218 |
except Exception as exc:
|
| 219 |
log("SEND-ERR", f"{exc!r}")
|