mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Fix proxy failing when omitting optional arguments
This commit is contained in:
parent
2874be05ff
commit
83dc5f7a03
1 changed files with 3 additions and 1 deletions
|
|
@ -895,7 +895,9 @@ class Client:
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.proxy:
|
if self.proxy:
|
||||||
pass
|
self.proxy["enabled"] = True
|
||||||
|
self.proxy["username"] = self.proxy.get("username", None)
|
||||||
|
self.proxy["password"] = self.proxy.get("password", None)
|
||||||
else:
|
else:
|
||||||
self.proxy = {}
|
self.proxy = {}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue