Censour out the user's password from the traceback
This commit is contained in:
1 parent
69c23e1b2e
commit
d62f12ebef
1 file changed
+2
@@ -879,6 +879,8 @@ class Twitch:
|
|||||||
cause = exc
|
cause = exc
|
||||||
if attempt < attempts - 1:
|
if attempt < attempts - 1:
|
||||||
await asyncio.sleep(0.1 * attempt)
|
await asyncio.sleep(0.1 * attempt)
|
||||||
|
if "json" in kwargs and "password" in kwargs["json"]:
|
||||||
|
kwargs["json"]["password"] = "..."
|
||||||
raise RequestException(
|
raise RequestException(
|
||||||
"Ran out of attempts while handling a request: "
|
"Ran out of attempts while handling a request: "
|
||||||
f"({method=}, {url=}, {attempts=}, {kwargs=})"
|
f"({method=}, {url=}, {attempts=}, {kwargs=})"
|
||||||
|
|||||||
Reference in new issue
Block a user