Skip to content

Commit

Permalink
live: work around tomlkit issue
Browse files Browse the repository at this point in the history
>>> from tomlkit.toml_file import TOMLFile
>>> from furcastbot.config import Config
>>> config = Config.get_config()
>>> config.config["announce"]["fc"]
['xbn', 'furcast']
>>> config.config["announce"]["fc"][1:]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "site-packages/tomlkit/items.py", line 1331, in __getitem__
    if rv.is_boolean():
       ^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'is_boolean'
  • Loading branch information
rileywilddog committed Mar 30, 2024
1 parent 577f447 commit e8a0ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion furcastbot/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def post_pin(
sent_messages = {announce_list[0]: root_message}

if forward:
for target_chat_id in announce_list[1:]:
for target_chat_id in list(announce_list)[1:]:
sent_messages[target_chat_id] = bot.forward_message(
target_chat_id,
root_message.chat_id,
Expand Down

0 comments on commit e8a0ff3

Please sign in to comment.