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):
|
||||
pass
|
||||
else:
|
||||
setattr(self, option, Client.APP_VERSION)
|
||||
|
||||
if parser.has_section("pyrogram"):
|
||||
setattr(self, option, parser.get(
|
||||
"pyrogram",
|
||||
@ -919,18 +917,6 @@ class Client(Methods, BaseClient):
|
||||
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:
|
||||
self._proxy["enabled"] = True
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user