mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Clean up load_config
This commit is contained in:
parent
42ea51cb77
commit
500ec09b47
@ -910,8 +910,6 @@ class Client(Methods, BaseClient):
|
|||||||
if getattr(self, option):
|
if getattr(self, option):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
setattr(self, option, Client.APP_VERSION)
|
|
||||||
|
|
||||||
if parser.has_section("pyrogram"):
|
if parser.has_section("pyrogram"):
|
||||||
setattr(self, option, parser.get(
|
setattr(self, option, parser.get(
|
||||||
"pyrogram",
|
"pyrogram",
|
||||||
@ -919,18 +917,6 @@ class Client(Methods, BaseClient):
|
|||||||
fallback=getattr(Client, option.upper())
|
fallback=getattr(Client, option.upper())
|
||||||
))
|
))
|
||||||
|
|
||||||
if self.lang_code:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
self.lang_code = Client.LANG_CODE
|
|
||||||
|
|
||||||
if parser.has_section("pyrogram"):
|
|
||||||
self.lang_code = parser.get(
|
|
||||||
"pyrogram",
|
|
||||||
"lang_code",
|
|
||||||
fallback=Client.LANG_CODE
|
|
||||||
)
|
|
||||||
|
|
||||||
if self._proxy:
|
if self._proxy:
|
||||||
self._proxy["enabled"] = True
|
self._proxy["enabled"] = True
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user