mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-22 10:09:14 +00:00
Fix the config value when changing from NoneType to something else
This commit is contained in:
parent
c4d620f0b9
commit
a6700ba22c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue