[fixes #168] now any TypeError is handled by try ... except clause

This commit is contained in:
Sebastian Wehling-Benatelli 2015-11-24 11:30:58 +01:00
parent 7a9c44198f
commit f1cee0cbfd

View File

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