mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
[Console] Fix unhandled error in preferences
If the value is None then the len cannot be calculated so set to blank string.
This commit is contained in:
parent
c7567ddee4
commit
ebb955934d
1 changed files with 1 additions and 1 deletions
|
@ -617,7 +617,7 @@ class TextInput(InputField):
|
|||
InputField.__init__(self, parent, name, message, **kwargs)
|
||||
self.move_func = move_func
|
||||
self._width = width
|
||||
self.value = value
|
||||
self.value = value if value else ''
|
||||
self.default_value = value
|
||||
self.complete = complete
|
||||
self.tab_count = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue