|
@@ -425,13 +425,14 @@ async def run_handler(bot, event, command):
|
|
|
|
|
|
return
|
|
|
|
|
|
- language_name, text = re.match(r'^(\w+)(?:\s|\n)((?:\n|.)*)$', command.args_string).groups()
|
|
|
-
|
|
|
- if not text.strip():
|
|
|
+ match = re.match(r'^(\w+)(?:\s|\n)((?:\n|.)*)$', command.args_string)
|
|
|
+ if not match:
|
|
|
await event.reply('Пожалуйста, не оставляйте ввод пустым!')
|
|
|
|
|
|
return
|
|
|
|
|
|
+ language_name, text = match.groups()
|
|
|
+
|
|
|
async with ClientSession() as session:
|
|
|
try:
|
|
|
async with session.post(
|