aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2019-09-24 07:20:44 +0200
committerGravatar GitHub <[email protected]>2019-09-24 07:20:44 +0200
commit258b0bb2ff98195e1ef07e1ce294a05a5b3aa690 (patch)
treeb3efb1131dbd7db704cda2602368d8b9ddd96827
parentCatch error in case of non successfull API call for new ot-names (diff)
Add `continue` in the except block
-rw-r--r--bot/cogs/off_topic_names.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/cogs/off_topic_names.py b/bot/cogs/off_topic_names.py
index cd3d78403..0e6c20423 100644
--- a/bot/cogs/off_topic_names.py
+++ b/bot/cogs/off_topic_names.py
@@ -55,6 +55,7 @@ async def update_names(bot: Bot) -> None:
)
except bot.api.ResponseCodeError as e:
log.error(f"Failed to get new off topic channel names: code {e.response.status}")
+ continue
channel_0, channel_1, channel_2 = (bot.get_channel(channel_id) for channel_id in CHANNELS)
await channel_0.edit(name=f'ot0-{channel_0_name}')