From ebb955934dfc8ea5d4b5654f7f27e660e2fb9d8e Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 12 Jul 2018 10:16:10 +0100 Subject: [PATCH] [Console] Fix unhandled error in preferences If the value is None then the len cannot be calculated so set to blank string. --- deluge/ui/console/widgets/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/widgets/fields.py b/deluge/ui/console/widgets/fields.py index 7cf222151..f9530c791 100644 --- a/deluge/ui/console/widgets/fields.py +++ b/deluge/ui/console/widgets/fields.py @@ -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