Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MainKronos committed Aug 6, 2023
1 parent 6b5f12f commit 4fa97b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- run: sudo locale-gen
- name: Test with unittest
run: python -m unittest discover -v -s ./tests -p test_*.py
6 changes: 5 additions & 1 deletion animeworld/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ def find(keyword: str) -> List[Dict]:
```
"""

locale.setlocale(locale.LC_TIME, "it_IT.UTF-8")
try:
locale.setlocale(locale.LC_TIME, "it_IT.UTF-8")
except locale.Error:
pass

res = SES.post("https://www.animeworld.so/api/search/v2?", params = {"keyword": keyword}, follow_redirects=True)

data = res.json()
Expand Down

0 comments on commit 4fa97b8

Please sign in to comment.