mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
webhooks: Log unexpected webhook events separately.
This change serves to declutter webhook-errors.log, which is filled with too many UnexpectedWebhookEventType exceptions. Keeping UnexpectedWebhookEventType in zerver/lib/webhooks/common.py led to a cyclic import when we tried to import the exception in zerver/decorators.py, so this commit also moves this exception to another appropriate module. Note that our webhooks still import this exception via zerver/lib/webhooks/common.py.
This commit is contained in:
@@ -67,7 +67,6 @@ not_yet_fully_covered = {path for target in [
|
||||
'zerver/lib/i18n.py',
|
||||
'zerver/lib/email_notifications.py',
|
||||
'zerver/lib/send_email.py',
|
||||
'zerver/lib/webhooks/common.py',
|
||||
'zerver/lib/url_preview/preview.py',
|
||||
'zerver/worker/queue_processors.py',
|
||||
# Bugdown sub-libs should have full coverage too; a lot are really close
|
||||
|
Reference in New Issue
Block a user