Fix possible IndexError (LP: #1287368)
This commit is contained in:
parent
1facb03e34
commit
4c69863fc8
|
@ -238,7 +238,10 @@ class MugshotWindow(Window):
|
|||
except:
|
||||
first_name = name
|
||||
last_name = ''
|
||||
if first_name:
|
||||
initials = first_name[0]
|
||||
else:
|
||||
initials = ''
|
||||
|
||||
# If the variables are defined as 'none', use blank for cleanliness.
|
||||
if home_phone == 'none':
|
||||
|
|
Loading…
Reference in New Issue