diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-16 21:00:40 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-16 21:00:40 +0200 |
commit | d156f512ae8377e30e9d11a6c5694140b6c63875 (patch) | |
tree | ade30c78a71cd631a06d95c581a1775031387aee | |
parent | default.conf cleanup (diff) | |
download | pyload-d156f512ae8377e30e9d11a6c5694140b6c63875.tar.xz |
[api] Improve getConfigValue
-rw-r--r-- | pyload/api/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/api/__init__.py b/pyload/api/__init__.py index c87623697..461c77cac 100644 --- a/pyload/api/__init__.py +++ b/pyload/api/__init__.py @@ -129,7 +129,7 @@ class Api(Iface): :return: config value as string """ if section == "core": - value = self.core.config[category][option] + value = self.core.config.get(category, option) else: value = self.core.config.getPlugin(category, option) return str(value) |