From d156f512ae8377e30e9d11a6c5694140b6c63875 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 16 Apr 2015 21:00:40 +0200 Subject: [api] Improve getConfigValue --- pyload/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3