fix
This commit is contained in:
parent
2d2a5c40ff
commit
c12a8df145
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ async def _(msg: Bot.MessageSession):
|
|||
_min = int(msg.parsed_msg['<min>'])
|
||||
_max = int(msg.parsed_msg['<max>'])
|
||||
except ValueError:
|
||||
return await msg.finish(msg.locale.t('random.message.number.error.invalid')) if _min > _max:
|
||||
return await msg.finish(msg.locale.t('random.message.number.error.invalid'))
|
||||
if _min > _max:
|
||||
return await msg.finish(msg.locale.t('random.message.number.error.out_of_range'))
|
||||
|
||||
|
|
Reference in a new issue