[Fix] author_txt_list assign

pull/3031/head
Telmo Santos 2021-02-24 07:59:20 +01:00 committed by jerome guerriat
parent 02e4339509
commit aee3e3fe68
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class IrModuleModule(models.Model):
if module.author and module.author[0] == "[": if module.author and module.author[0] == "[":
author_txt_list = safe_eval(module.author) author_txt_list = safe_eval(module.author)
else: else:
author_txt_list = module.author.split(",") author_txt_list = (module.author and module.author.split(",")) or []
author_txt_list = [x.strip() for x in author_txt_list] author_txt_list = [x.strip() for x in author_txt_list]
author_txt_list = [x for x in author_txt_list if x] author_txt_list = [x for x in author_txt_list if x]