Skip to content

Commit

Permalink
fix: specify encoding for file with emoji in it so it loads on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ntindle committed Dec 3, 2024
1 parent 7c2e371 commit 0b3825d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autogpt_platform/backend/backend/blocks/github/triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ class Output(GitHubTriggerBase.Output):
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",
Expand Down

0 comments on commit 0b3825d

Please sign in to comment.