From 3b0c614dd99313598bb9caf8a9a3239567a9b80d Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 25 Feb 2022 14:00:04 +0700 Subject: [PATCH] [check] some fixes --- program/sysinfo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 !')