2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

Fix proxy failing when omitting optional arguments

This commit is contained in:
Dan 2018-04-27 12:46:46 +02:00
parent 2874be05ff
commit 83dc5f7a03

View File

@ -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 = {}