fix index

This commit is contained in:
Valentin CZERYBA 2023-09-11 23:20:48 +02:00
parent dbab60c7dc
commit 6f78a48e57

View File

@ -170,7 +170,7 @@ class WPimport:
if len(split_paragraph) == 1: if len(split_paragraph) == 1:
split_paragraph = str(paragraph).split("<br/>") split_paragraph = str(paragraph).split("<br/>")
self._logger.info("{0} get paragraph splitted : {1}".format(self._name, split_paragraph)) self._logger.info("{0} get paragraph splitted : {1}".format(self._name, split_paragraph))
if len(split_paragraph) > 0: if len(split_paragraph) > 1:
author = split_paragraph[1].split(":")[1].replace(" ", "").lower() author = split_paragraph[1].split(":")[1].replace(" ", "").lower()
return author return author