Skip to content

Commit

Permalink
Исправлена ошибка, возникающая при отсутствии параметра send_reposts …
Browse files Browse the repository at this point in the history
…при настройке репостов.
  • Loading branch information
qwertyadrian committed Jun 12, 2022
1 parent 09e7a02 commit a35cb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TG_AutoPoster/plugins/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def callback(bot: AutoPoster, callback_query: CallbackQuery):
button_list, n_cols=2, footer_buttons=footer_buttons
)

option = bot.config["settings"]["send_reposts"]
option = bot.config["settings"].get("send_reposts", False)

if data[1] != "global":
button_list.append(
Expand Down

0 comments on commit a35cb92

Please sign in to comment.