Keep refreshing subscriptions if a channel errored

This commit is contained in:
BreadTube 2025-11-04 20:38:52 +09:00
commit 4674cc926c

View file

@ -447,6 +447,8 @@ class Bot:
for sub_info in sorted_subs: for sub_info in sorted_subs:
try: try:
self._refresh_sub(sub_info, channel_dict, category_ranges) self._refresh_sub(sub_info, channel_dict, category_ranges)
except RuntimeError as error:
self.logger.error('Refreshing subscription %s failed: %s', sub_info.channel_id, error)
except TimeoutError as error: except TimeoutError as error:
self.logger.error('Timeout error refreshing subcription: %s', error) self.logger.error('Timeout error refreshing subcription: %s', error)
break break