diff --git a/modules/python.py b/modules/python.py index e0cc976..af2a042 100644 --- a/modules/python.py +++ b/modules/python.py @@ -43,7 +43,7 @@ async def user_exec(client: Client, message: Message): try: with redirect_stdout(stdout): - exec(code) + exec(code) # skipcq text = ( "Code:\n" f"{code}\n\n" @@ -68,7 +68,7 @@ async def user_eval(client: Client, message: Message): code = message.text.split(maxsplit=1)[1] try: - result = eval(code) + result = eval(code) # skipcq await message.edit( "Expression:\n" f"{code}\n\n" diff --git a/modules/removebg.py b/modules/removebg.py index b49d678..779bcd6 100644 --- a/modules/removebg.py +++ b/modules/removebg.py @@ -54,14 +54,14 @@ async def convert_to_image(message, client) -> None | str: cmd = ( f"lottie_convert.py --frame 0 -if lottie -of png {path_s} {final_path}" ) - await exec(cmd) + await exec(cmd) # skipcq elif message.reply_to_message.audio: thumb = message.reply_to_message.audio.thumbs[0].file_id final_path = await client.download_media(thumb) elif message.reply_to_message.video or message.reply_to_message.animation: final_path = "fetched_thumb.png" vid_path = await client.download_media(message.reply_to_message) - await exec(f"ffmpeg -i {vid_path} -filter:v scale=500:500 -an {final_path}") + await exec(f"ffmpeg -i {vid_path} -filter:v scale=500:500 -an {final_path}") # skipcq elif message.reply_to_message.document: if message.reply_to_message.document.mime_type == "image/jpeg": final_path = await message.reply_to_message.download() diff --git a/utils/scripts.py b/utils/scripts.py index 874b58b..6dc7d44 100644 --- a/utils/scripts.py +++ b/utils/scripts.py @@ -219,7 +219,7 @@ def restart() -> None: music_bot_process.terminate() except psutil.NoSuchProcess: print("Music bot is not running.") - os.execvp(sys.executable, [sys.executable, "main.py"]) + os.execvp(sys.executable, [sys.executable, "main.py"]) # skipcq def format_exc(e: Exception, suffix="") -> str: