Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix: specify encoding for file with emoji in it so it loads on windows (#8873)

Nicholas Tindle96bba3c1bda2
diff --git a/autogpt_platform/backend/backend/blocks/github/triggers.py b/autogpt_platform/backend/backend/blocks/github/triggers.py
index ce24a649fe..938dce84fa 100644
--- a/autogpt_platform/backend/backend/blocks/github/triggers.py
+++ b/autogpt_platform/backend/backend/blocks/github/triggers.py
@@ -111,7 +111,9 @@ class GithubPullRequestTriggerBlock(GitHubTriggerBase, Block):
def __init__(self):
from backend.integrations.webhooks.github import GithubWebhookType
- example_payload = json.loads(self.EXAMPLE_PAYLOAD_FILE.read_text())
+ example_payload = json.loads(
+ self.EXAMPLE_PAYLOAD_FILE.read_text(encoding="utf-8")
+ )
super().__init__(
id="6c60ec01-8128-419e-988f-96a063ee2fea",