Explorar el Código

Expecting property name enclosed in double quotes

Foppe Hemminga hace 6 años
padre
commit
c006993b5c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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]