diff --git a/modules/random/__init__.py b/modules/random/__init__.py index 8835215a..bf6f0e9b 100644 --- a/modules/random/__init__.py +++ b/modules/random/__init__.py @@ -15,7 +15,7 @@ async def _(msg: Bot.MessageSession): _min = int(msg.parsed_msg['']) _max = int(msg.parsed_msg['']) 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'))