From a6700ba22cd2519f5c6ba4b95b0d2ff10e4a8e92 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 14 Aug 2008 06:37:20 +0000 Subject: [PATCH] Fix the config value when changing from NoneType to something else --- deluge/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/config.py b/deluge/config.py index e4b8f39b7..699807e48 100644 --- a/deluge/config.py +++ b/deluge/config.py @@ -118,7 +118,7 @@ class Config: oldtype, newtype = type(self.config[key]), type(value) - if value is not None and oldtype != newtype: + if value is not None and oldtype != type(None) and oldtype != newtype: try: value = oldtype(value) except ValueError: