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: