[fixes #168] now any TypeError is handled by try ... except clause
This commit is contained in:
parent
7a9c44198f
commit
f1cee0cbfd
@ -843,7 +843,10 @@ class InputsTab(PropTab):
|
|||||||
|
|
||||||
# get the full name of the actual user
|
# get the full name of the actual user
|
||||||
self.fullNameEdit = QLineEdit()
|
self.fullNameEdit = QLineEdit()
|
||||||
|
try:
|
||||||
self.fullNameEdit.setText(fulluser)
|
self.fullNameEdit.setText(fulluser)
|
||||||
|
except TypeError as e:
|
||||||
|
self.fullNameEdit.setText(fulluser[0])
|
||||||
|
|
||||||
# information about data structure
|
# information about data structure
|
||||||
dataroot = settings.value("data/dataRoot")
|
dataroot = settings.value("data/dataRoot")
|
||||||
|
Loading…
Reference in New Issue
Block a user