kenken999 commited on
Commit
24961a2
1 Parent(s): 0bff2cc
Files changed (1) hide show
  1. mysite/interpreter/google_chat.py +2 -1
mysite/interpreter/google_chat.py CHANGED
@@ -124,5 +124,6 @@ def send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_u
124
  else:
125
  print(f"Failed to post message: {response.status_code}, {response.text}")
126
 
127
- thread_name = response['thread']['name']
 
128
  return thread_name
 
124
  else:
125
  print(f"Failed to post message: {response.status_code}, {response.text}")
126
 
127
+ response_data = response.json()
128
+ thread_name = response_data['thread']['name']
129
  return thread_name