[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
|
@ -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…
Reference in New Issue