Fixed a bug

This commit is contained in:
Choco
2024-02-16 10:43:00 +08:00
parent 87813e52d7
commit a3e909a257

View File

@@ -137,7 +137,7 @@ class Node:
@property @property
def spotify_client(self) -> Optional[spotify.Client]: def spotify_client(self) -> Optional[spotify.Client]:
if not self._spotify_client: if not self._spotify_client:
if not self._spotify_client_id and not self._spotify_client_secret: if not self._spotify_client_id or not self._spotify_client_secret:
return None return None
self._spotify_client = spotify.Client( self._spotify_client = spotify.Client(