Skip to content

Refactor weapon info fetching and error handling in misc.py#66

Merged
cesaregarza merged 1 commit intomainfrom
fix/redis-repopulate
Jan 4, 2026
Merged

Refactor weapon info fetching and error handling in misc.py#66
cesaregarza merged 1 commit intomainfrom
fix/redis-repopulate

Conversation

@cesaregarza
Copy link
Owner

This commit introduces a new private function to streamline the fetching of JSON data from URLs, enhancing error handling for both weapon info and language translations. It replaces direct requests with the new function, improving code readability and maintainability. Additionally, it ensures that failures in fetching translations are logged appropriately, and existing translations are merged correctly before updating Redis. Logging improvements are also made for better traceability.

This commit introduces a new private function to streamline the fetching of JSON data from URLs, enhancing error handling for both weapon info and language translations. It replaces direct requests with the new function, improving code readability and maintainability. Additionally, it ensures that failures in fetching translations are logged appropriately, and existing translations are merged correctly before updating Redis. Logging improvements are also made for better traceability.
@cesaregarza cesaregarza merged commit 7ed8a22 into main Jan 4, 2026
7 checks passed
@cesaregarza cesaregarza deleted the fix/redis-repopulate branch January 4, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant