izuemon commited on
Commit
93f0bdc
·
verified ·
1 Parent(s): dc4b507

Update v2_gpt.py

Browse files
Files changed (1) hide show
  1. v2_gpt.py +1 -2
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}")