mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #661] How to disable printing/logging errors #394
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#394
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @francisgianj on GitHub (Mar 27, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/661
Hi, I'd like to disable the error being printed when there's any error.
e.g.
HTTP Error for PUT to https://api.spotify.com/v1/me/player/play returned 403 due to Player command failed: Restriction violatedI'm not printing any error with my try/except blocks but the example above keeps printing even though I don't wanna. Please help. Thank you in advance :)
@Peter-Schorn commented on GitHub (Mar 27, 2021):
Here's how to suppress log messages:
@francisgianj commented on GitHub (Mar 28, 2021):
Thanks Peter! it's not logging anymore.