[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:
Calum Lind 2018-07-12 10:16:10 +01:00
parent c7567ddee4
commit ebb955934d
1 changed files with 1 additions and 1 deletions

View File

@ -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