We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7085af6 commit 644fe38Copy full SHA for 644fe38
stubs/requests/@tests/test_cases/check_jsondecodeerror.py
@@ -0,0 +1,7 @@
1
+import requests
2
+from requests.exceptions import JSONDecodeError
3
+
4
+try:
5
+ requests.get("https://httpbin.org/html")
6
+except JSONDecodeError as exc:
7
+ print(f"Error. doc: {exc.doc}, msg: {exc.msg}, pos: {exc.pos}")
0 commit comments