mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Fix the configuration load process breaking in case of no plugins
This commit is contained in:
parent
5e97cb3420
commit
a8a6f53e2d
@ -1087,8 +1087,9 @@ class Client(Methods, BaseClient):
|
|||||||
"exclude": section.get("exclude") or None
|
"exclude": section.get("exclude") or None
|
||||||
}
|
}
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
self.plugins = {}
|
||||||
|
|
||||||
|
if self.plugins:
|
||||||
for option in ["include", "exclude"]:
|
for option in ["include", "exclude"]:
|
||||||
if self.plugins[option] is not None:
|
if self.plugins[option] is not None:
|
||||||
self.plugins[option] = [
|
self.plugins[option] = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user