From f1cee0cbfd5641f8800f5ffb60ef5c6bf556760a Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Tue, 24 Nov 2015 11:30:58 +0100 Subject: [PATCH] [fixes #168] now any TypeError is handled by try ... except clause --- pylot/core/util/widgets.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 8fc47268..16731ef3 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -843,7 +843,10 @@ class InputsTab(PropTab): # get the full name of the actual user self.fullNameEdit = QLineEdit() - self.fullNameEdit.setText(fulluser) + try: + self.fullNameEdit.setText(fulluser) + except TypeError as e: + self.fullNameEdit.setText(fulluser[0]) # information about data structure dataroot = settings.value("data/dataRoot")