Fix potential bug

This commit is contained in:
blank X 2020-11-16 00:44:10 +07:00
parent de553a7b90
commit 4ecdfb2f63
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ async def nhentai_comment_info(client, message):
info = await resp.json()
text = f'<b>{sauce}</b>\n<b>'
if 'error' in info:
text += f'Error:</b> {html.escape(info.get("error"))}'
text += f'Error:</b> {html.escape(info.get("error", "None"))}'
else:
text += 'Title:</b> '
if info['title']['english']: