Skip to content

Commit

Permalink
refactor: Hide count variable with __
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-ruby committed Oct 23, 2023
1 parent 9d2231b commit b72b70d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TrackerGG/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@

__all__ = ["Models", "CSGOClient", "ApexClient", "utils"]

count = 0
__count = 0

try:
import aiohttp

count += 1
__count += 1
except ImportError:
pass

try:
import httpx

count += 1
__count += 1
except ImportError:
pass

if count == 0:
if __count == 0:
raise ImportError(
"\nAt least one of aiohttp or httpx libraries is required\nTry `pip install aiohttp` or `pip install httpx`"
)

0 comments on commit b72b70d

Please sign in to comment.