Fix potential bug
This commit is contained in:
parent
de553a7b90
commit
4ecdfb2f63
|
@ -26,7 +26,7 @@ async def nhentai_comment_info(client, message):
|
||||||
info = await resp.json()
|
info = await resp.json()
|
||||||
text = f'<b>{sauce}</b>\n<b>'
|
text = f'<b>{sauce}</b>\n<b>'
|
||||||
if 'error' in info:
|
if 'error' in info:
|
||||||
text += f'Error:</b> {html.escape(info.get("error"))}'
|
text += f'Error:</b> {html.escape(info.get("error", "None"))}'
|
||||||
else:
|
else:
|
||||||
text += 'Title:</b> '
|
text += 'Title:</b> '
|
||||||
if info['title']['english']:
|
if info['title']['english']:
|
||||||
|
|
Loading…
Reference in New Issue