فهرست منبع

Expecting property name enclosed in double quotes

Foppe Hemminga 6 سال پیش
والد
کامیت
c006993b5c
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      view.py

+ 2 - 0
view.py

@@ -29,6 +29,8 @@ def send_alert(this_alert):
 def _send(send_json):
     load_dotenv()
     webhooks_json = os.environ["DISCORD_TOKENS"]
+    webhooks_json = webhooks_json.replace("'", '"')
+    print(webhooks_json)
     webhooks = json.loads(webhooks_json)
     for webhook_key in webhooks:
         webhook = webhooks[webhook_key]