Skip to content

Commit 4790c54

Browse files
authored
Merge pull request #1721 from Rid/patch-1
Fix formatting of f strings
2 parents 1e0bc1d + 448e36f commit 4790c54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/modules/bot_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async def get_buttons(key=None, edit_type=None):
141141
if key == "newser":
142142
msg = "Send one server as dictionary {}, like in config.env without []. Timeout: 60 sec"
143143
else:
144-
msg = f"Send a valid value for {key} in server {config_dict["USENET_SERVERS"][index]['name']}. Current value is '{config_dict["USENET_SERVERS"][index][key]}. Timeout: 60 sec"
144+
msg = f"Send a valid value for {key} in server {config_dict['USENET_SERVERS'][index]['name']}. Current value is '{config_dict['USENET_SERVERS'][index][key]}. Timeout: 60 sec"
145145
elif key == "var":
146146
for k in list(config_dict.keys())[START : 10 + START]:
147147
buttons.ibutton(k, f"botset botvar {k}")
@@ -865,7 +865,7 @@ async def edit_bot_settings(client, query):
865865
await event_handler(client, query, pfunc, rfunc)
866866
elif data[1].startswith("nzbsevar") and STATE == "view":
867867
index = int(data[1].replace("nzbsevar", ""))
868-
value = f"{config_dict["USENET_SERVERS"][index][data[2]]}"
868+
value = f"{config_dict['USENET_SERVERS'][index][data[2]]}"
869869
if len(value) > 200:
870870
await query.answer()
871871
with BytesIO(str.encode(value)) as out_file:

0 commit comments

Comments
 (0)