fix: Incorrect fix
This commit is contained in:
parent
26c335d79b
commit
b91e05d2d0
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ def today():
|
|||
def get_abbr(string, max_len=2):
|
||||
abbr=''
|
||||
for part in string.split(' '):
|
||||
if len(abbr) < max_len and part[0]:
|
||||
if len(abbr) < max_len and part:
|
||||
abbr += part[0]
|
||||
|
||||
return abbr or '?'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue