markdown parse mode for ipcalc help messages, hotfix

This commit is contained in:
kiriharu 2021-01-11 12:07:15 +03:00
parent 5ab4d79b6e
commit 4501018078

View File

@ -27,9 +27,9 @@ class IPCalcCommandHandler(SimpleCommandHandler):
args = await self.process_args(message.text)
network = ipaddress.ip_network(args[1], False)
except NotEnoughArgs:
await message.answer(self.help_message)
await message.answer(self.help_message, parse_mode='Markdown')
except ValueError:
await message.answer(self.help_message)
await message.answer(self.help_message, parse_mode='Markdown')
else:
msg = await self.prepare_message(network)
await message.answer(msg)