summaryrefslogtreecommitdiffstats
path: root/pyload/remote/ThriftBackend.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 17:48:30 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 18:06:38 +0200
commit6cdb1ae0fe8f4faf897220d0520ca3e753e9f3e4 (patch)
tree24a8d6e3c2e62597b6cd3a75b77bf1a6470bd702 /pyload/remote/ThriftBackend.py
parentFix lib import (diff)
downloadpyload-6cdb1ae0fe8f4faf897220d0520ca3e753e9f3e4.tar.xz
[config] Use get method instead dict access
Diffstat (limited to 'pyload/remote/ThriftBackend.py')
-rw-r--r--pyload/remote/ThriftBackend.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/remote/ThriftBackend.py b/pyload/remote/ThriftBackend.py
index 83bb83811..adb168df2 100644
--- a/pyload/remote/ThriftBackend.py
+++ b/pyload/remote/ThriftBackend.py
@@ -21,11 +21,11 @@ class ThriftBackend(BackendBase):
key = None
cert = None
- if self.core.config['ssl']['activated']:
- if exists(self.core.config['ssl']['cert']) and exists(self.core.config['ssl']['key']):
+ if self.core.config.get("ssl", "activated"):
+ if exists(self.core.config.get("ssl", "cert")) and exists(self.core.config.get("ssl", "key")):
self.core.log.info(_("Using SSL ThriftBackend"))
- key = self.core.config['ssl']['key']
- cert = self.core.config['ssl']['cert']
+ key = self.core.config.get("ssl", "key")
+ cert = self.core.config.get("ssl", "cert")
transport = ServerSocket(port, host, key, cert)