summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 21:00:40 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 21:00:40 +0200
commitd156f512ae8377e30e9d11a6c5694140b6c63875 (patch)
treeade30c78a71cd631a06d95c581a1775031387aee
parentdefault.conf cleanup (diff)
downloadpyload-d156f512ae8377e30e9d11a6c5694140b6c63875.tar.xz
[api] Improve getConfigValue
-rw-r--r--pyload/api/__init__.py2
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)