Skip to content

Commit 4fa97b8

Browse files
committed
fix
1 parent 6b5f12f commit 4fa97b8

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/python-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ jobs:
1717
python-version: '3.x'
1818
- name: Install dependencies
1919
run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
20-
- run: sudo locale-gen
2120
- name: Test with unittest
2221
run: python -m unittest discover -v -s ./tests -p test_*.py

animeworld/utility.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ def find(keyword: str) -> List[Dict]:
115115
```
116116
"""
117117

118-
locale.setlocale(locale.LC_TIME, "it_IT.UTF-8")
118+
try:
119+
locale.setlocale(locale.LC_TIME, "it_IT.UTF-8")
120+
except locale.Error:
121+
pass
122+
119123
res = SES.post("https://www.animeworld.so/api/search/v2?", params = {"keyword": keyword}, follow_redirects=True)
120124

121125
data = res.json()

0 commit comments

Comments
 (0)