Skip to content

Commit

Permalink
Fix client_id validation
Browse files Browse the repository at this point in the history
  • Loading branch information
7x11x13 committed Mar 19, 2024
1 parent 30ca0ed commit 57d1c83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def readme():

setup(
name="soundcloud-v2",
version="1.3.1",
version="1.3.2",
description="Python wrapper for the v2 SoundCloud API",
long_description=readme(),
long_description_content_type='text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion soundcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
from soundcloud.resource.web_profile import WebProfile
from soundcloud.soundcloud import SoundCloud

__version__ = "1.3.1"
__version__ = "1.3.2"
4 changes: 1 addition & 3 deletions soundcloud/soundcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ def is_client_id_valid(self) -> bool:
Checks if current client_id is valid
"""
try:
next(
self.requests["tag_recent_tracks"](tag="electronic", limit="1", use_auth=False)
)
self.get_track(1032303631)
return True
except HTTPError as err:
if err.response.status_code == 401:
Expand Down

0 comments on commit 57d1c83

Please sign in to comment.