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
#8873)

<!-- Clearly explain the need for these changes: -->

On windows this file load kept crashing stuff on startup so I specified
the encoding

### Changes 🏗️

<!-- Concisely describe all of the changes made in this pull request:
-->

### Checklist 📋

#### For code changes:
- [x] I have clearly listed my changes in the PR description
- [x] I have made a test plan
- [x] Run the app!
  • Loading branch information
ntindle authored Dec 3, 2024
1 parent de1cd6c commit 96bba3c
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 96bba3c

Please sign in to comment.