Fix the configuration load process breaking in case of no plugins

This commit is contained in:
Dan 2019-01-26 13:01:44 +01:00
parent 5e97cb3420
commit a8a6f53e2d

View File

@ -1087,8 +1087,9 @@ class Client(Methods, BaseClient):
"exclude": section.get("exclude") or None
}
except KeyError:
pass
self.plugins = {}
if self.plugins:
for option in ["include", "exclude"]:
if self.plugins[option] is not None:
self.plugins[option] = [