mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-10 15:04:34 +12:00
Fix crash of issue #1082
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
eeb98a8ccd
commit
16f6ecc8bc
|
@ -301,9 +301,12 @@ def infos(ref):
|
||||||
if item:
|
if item:
|
||||||
for r in range(item.rowCount()):
|
for r in range(item.rowCount()):
|
||||||
ID = item.child(r, 0).text()
|
ID = item.child(r, 0).text()
|
||||||
characters += "<li><a href='{link}'>{text}</a>".format(
|
character = pM.getCharacterByID(ID)
|
||||||
link=characterReference(ID),
|
|
||||||
text=pM.getCharacterByID(ID).name())
|
if character is not None:
|
||||||
|
characters += "<li><a href='{link}'>{text}</a>".format(
|
||||||
|
link=characterReference(ID),
|
||||||
|
text=character.name())
|
||||||
|
|
||||||
# Resolution steps
|
# Resolution steps
|
||||||
steps = ""
|
steps = ""
|
||||||
|
|
Loading…
Reference in a new issue