From b4db3fdadf42f05aa9e4b9b01bcedaf510401142 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 9 Feb 2016 22:32:11 +0100 Subject: [PATCH] Type definition not working --- couchpotato/core/settings.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/couchpotato/core/settings.py b/couchpotato/core/settings.py index 6e9993f..98959d8 100644 --- a/couchpotato/core/settings.py +++ b/couchpotato/core/settings.py @@ -133,7 +133,7 @@ class Settings(object): return None try: - type = self.getType(section, option) + type = self.getType(section, option) if not type else type if hasattr(self, 'get%s' % type.capitalize()): return getattr(self, 'get%s' % type.capitalize())(section, option) @@ -230,7 +230,7 @@ class Settings(object): if (not value): value = [] try : value = map(soft_chroot.abs2chroot, value) - except : value = [] + except : value = [] values[section][option_name] = value @@ -259,7 +259,7 @@ class Settings(object): try: type = self.types[section][option] except: type = 'unicode' if not type else type return type - + def addOptions(self, section_name, options): # no additional actions (related to ro-rw options) are required here if not self.options.get(section_name): @@ -331,7 +331,7 @@ class Settings(object): return { 'success' : False, } - + from couchpotato.environment import Env soft_chroot = Env.get('softchroot')