From fa0961a9fac16ac60181190a30696a891f09d7cf Mon Sep 17 00:00:00 2001
From: Sourcery AI <>
Date: Mon, 13 Feb 2023 08:08:38 +0000
Subject: [PATCH] 'Refactored by Sourcery'
---
utils.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils.py b/utils.py
index ddb9bea..5e4b47e 100644
--- a/utils.py
+++ b/utils.py
@@ -50,7 +50,7 @@ async def download_insta(command, m, dir):
if output:
datetime_ist = datetime.now(IST)
ISTIME = datetime_ist.strftime("%I:%M:%S %p - %d %B %Y")
- msg="CURRENT_STATUS ⚙️ : {}\nLast Updated :{}".format(output.decode("UTF8"), ISTIME)
+ msg = f'CURRENT_STATUS ⚙️ : {output.decode("UTF8")}\nLast Updated :{ISTIME}'
msg=msg.replace(f'{dir}/', 'DOWNLOADED : ')
try:
await m.edit(msg)
@@ -65,7 +65,7 @@ async def download_insta(command, m, dir):
if error:
datetime_ist = datetime.now(IST)
ISTIME = datetime_ist.strftime("%I:%M:%S %p - %d %B %Y")
- ermsg="ERROR ❌ : {}\nLast Updated : {}".format(error.decode("UTF8"), ISTIME)
+ ermsg = f'ERROR ❌ : {error.decode("UTF8")}\nLast Updated : {ISTIME}'
try:
await m.edit(ermsg)
except: