Archived
1
0
Fork 0
This commit is contained in:
多羅狼 2023-05-17 20:01:01 +08:00 committed by GitHub
parent 2d2a5c40ff
commit c12a8df145
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'))