mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-24 02:11:06 +00:00
Fix the config value when changing from NoneType to something else
This commit is contained in:
parent
c4d620f0b9
commit
a6700ba22c
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user