Skip to content

Commit

Permalink
Ignore wikibork error
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjrw committed Jan 30, 2025
1 parent ff6b0cb commit d8cb796
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions notifier/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
SupportedWikiConfig,
)
from notifier.wikidot import (
Wikibork,
Wikidot,
NotLoggedIn,
RestrictedInbox,
Expand Down Expand Up @@ -320,6 +321,17 @@ def notify_channel(
except NotLoggedIn as error:
logger.error("Failed to notify anyone; not logged in")
raise RuntimeError from error
except Wikibork:
# Wikidot down - no point raising an error because I can't do anything about it
logger.warning(
"Wikibork detected, skipping user %s",
{
"user": user["username"],
"channel": channel,
"user_config": user,
},
)
continue
except Exception as error:
logger.error(
"Failed to notify user %s",
Expand Down

0 comments on commit d8cb796

Please sign in to comment.