We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe2aad commit 7a3eed6Copy full SHA for 7a3eed6
weverse/weverse.py
@@ -2,7 +2,7 @@
2
import logging
3
4
from .enums import NotificationType
5
-from .errors import NotFound, Forbidden
+from .errors import Forbidden, NotFound
6
from .fetcher import WeverseFetcher
7
from .objects.comment import Comment
8
from .objects.community import Community, PartialCommunity
@@ -611,7 +611,12 @@ async def __notification_stream(self) -> None:
611
612
elif notification.post_type == NotificationType.NOTICE:
613
if notification.community.id != 0:
614
- notice = await self.fetch_notice(notification.post_id)
+ try:
615
+ notice = await self.fetch_notice(notification.post_id)
616
+
617
+ except Forbidden:
618
+ continue
619
620
await self.on_new_notice(notice)
621
622
for comment in comments:
0 commit comments