diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-08-31 19:17:44 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-08-31 19:17:44 +0300 |
commit | e209a9bb375762ce1ad14e231d0719358c3336ec (patch) | |
tree | a617c27d8dc8612f41b3494120f782bdb8ce56d8 /core/views/uploads.py | |
parent | 2dc8faee3589b43edfa3eb4aea04ab7cbb068a03 (diff) | |
download | troggle-e209a9bb375762ce1ad14e231d0719358c3336ec.tar.gz troggle-e209a9bb375762ce1ad14e231d0719358c3336ec.tar.bz2 troggle-e209a9bb375762ce1ad14e231d0719358c3336ec.zip |
bugfix, name[0] may not exist
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r-- | core/views/uploads.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py index 58efb37..f0dedfa 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -106,7 +106,7 @@ def store_edited_entry_into_database(date, place, title, text, others, author, t team.append(author) for name in team: name = name.strip() - if name[0] != "*": # a name prefix of "*" is special, just a string. + if len(name) > 0 and name[0] != "*": # a name prefix of "*" is special, just a string. try: personyear = GetPersonExpeditionNameLookup(expedition).get(name.lower()) if not personyear: |