mirror of https://github.com/zulip/zulip.git
eca9088176
This commit strengthens types by typing the webhook's incoming payload as WildValue and taming the values of the payload before usage, which eradicates the use of Any within the UptimeRobot incoming webhook integration. The payload's values are now tamed, stored in variables and passed into message templates as opposed to passing in the payload dict as keyword arguments. The KeyError exception has been replaced to catch a ValidationError instead now, since the incoming payload's keys will be tamed before usage and the non-existence of the key is raised as a ValidationError in the taming function. |
||
---|---|---|
.. | ||
fixtures | ||
__init__.py | ||
doc.md | ||
tests.py | ||
view.py |