Skip to content

Commit ef6fb8d

Browse files
etiennevincentamotl
authored andcommitted
fix: fix JSONDecodeError exception
When trying to delete a folder, the exception raised is not `json.JSONDEcodeError` but `requests.exceptions.JSONDECodeError`.
1 parent c6c799b commit ef6fb8d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

grafana_client/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
from json import JSONDecodeError
2-
31
import niquests
42
import niquests.auth
53
from niquests import HTTPError, Timeout
4+
from requests.exceptions import JSONDecodeError
65

76
DEFAULT_TIMEOUT: float = 5.0
87
DEFAULT_SESSION_POOL_SIZE: int = 10

0 commit comments

Comments
 (0)