diff --git a/program/sysinfo.py b/program/sysinfo.py index a86df0b..4be27be 100644 --- a/program/sysinfo.py +++ b/program/sysinfo.py @@ -90,5 +90,6 @@ async def get_bot_logs(c: Client, m: Message): remove_if_exists(bot_log_path) except BaseException as err: LOGS.info(f'[ERROR]: {err}') - if not os.path.exists(bot_log_path): - await m.reply_text('❌ no logs found !') + else: + if not os.path.exists(bot_log_path): + await m.reply_text('❌ no logs found !')