add token bug fix
This commit is contained in:
parent
1f384c12ab
commit
278c5b9c40
2 changed files with 10 additions and 3 deletions
|
|
@ -26,10 +26,13 @@ class LichessAPI:
|
|||
if response.status == 200:
|
||||
return await response.json()
|
||||
else:
|
||||
logger.error(f"Failed to get user profile: {response.status}")
|
||||
error_text = await response.text()
|
||||
logger.error(f"Failed to get user profile: {response.status} - {error_text}")
|
||||
return None
|
||||
except Exception as e:
|
||||
logger.error(f"Error getting user profile: {e}")
|
||||
import traceback
|
||||
logger.error(traceback.format_exc())
|
||||
return None
|
||||
|
||||
async def get_today_stats(self, username: str) -> Optional[Dict[str, Any]]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue