Censour out the user's password from the traceback

This commit is contained in:
DevilXD committed 2022-07-23 12:31:52 +02:00
1 parent 69c23e1b2e
commit d62f12ebef
1 file changed
+2
+2
View File
@@ -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=})"