Skip to content

Commit

Permalink
fix: ensure oui data can be loaded in windows (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Jan 19, 2025
1 parent 6838f14 commit 91c29c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
- "3.13"
os:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion src/aiooui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def async_load(self) -> None:

def _load_oui_data(self) -> dict[str, str]:
"""Load the OUI data."""
with open(_OUI_DATA_FILE) as f:
with open(_OUI_DATA_FILE, encoding="utf-8", errors="replace") as f:
oui_to_vendor: dict[str, str] = {}
for line in f.read().splitlines():
oui, _, vendor = line.partition("=")
Expand Down

0 comments on commit 91c29c7

Please sign in to comment.