Alex Vandiver
a40b3e1118
realm_emoji: Stop swallowing all exceptions from upload_emoji_image.
...
Putting all of the logic in a `finally` block is equivalent to a bare
`except` block, which silently consumes all exceptions.
Move only the most-necessary parts into the except; this lets
`BadImageError` exceptions from `zerver/lib/upload.py` to escape,
allowing better the generic "Image file upload failed" to be replaced
with a more specific message.
It also allows unexpected exceptions, as the previous commit resolved,
to escape and 500. This lets them be detected and resolved, rather
than give users a silently bad experience.
2022-02-17 12:19:47 -08:00
..
2022-02-07 18:51:06 -08:00
2022-02-17 12:19:47 -08:00
2021-12-28 12:15:02 -08:00
2022-02-10 11:40:34 -08:00
2022-02-07 18:51:06 -08:00
2021-11-25 07:58:27 -08:00
2021-09-22 16:22:46 -07:00
2022-02-04 15:16:56 -08:00
2022-02-07 18:51:06 -08:00
2022-02-07 14:40:31 -08:00
2022-02-07 18:51:06 -08:00
2021-12-01 23:14:04 +00:00
2022-01-27 17:23:44 -08:00
2021-12-14 18:11:23 -08:00
2021-12-10 09:40:04 -08:00
2022-02-07 18:51:06 -08:00
2022-02-07 19:20:54 -08:00
2022-01-28 17:45:45 -08:00
2021-12-28 12:15:02 -08:00
2021-12-28 10:11:34 -08:00
2022-02-07 19:20:54 -08:00
2021-12-07 21:55:59 -08:00
2021-09-10 16:53:03 -07:00
2022-02-11 18:21:38 +01:00
2022-02-07 18:51:06 -08:00
2021-12-10 09:40:04 -08:00
2021-11-03 11:14:02 -07:00
2022-02-07 18:51:06 -08:00
2021-12-06 13:22:47 -08:00
2021-12-10 09:40:04 -08:00
2022-02-07 18:51:06 -08:00
2022-02-09 15:13:04 -08:00
2022-02-13 19:11:49 -08:00
2022-02-07 18:51:06 -08:00
2022-02-02 10:11:35 -08:00
2022-02-07 18:51:06 -08:00
2022-01-23 23:39:40 -08:00
2022-02-09 14:35:12 -08:00
2021-12-10 09:40:04 -08:00
2022-02-11 18:09:43 -08:00
2022-01-03 09:55:06 -08:00
2022-02-07 18:51:06 -08:00
2022-01-23 22:14:17 -08:00
2021-09-23 11:19:20 -07:00
2022-02-08 15:16:31 -08:00
2022-02-07 18:51:06 -08:00
2022-01-21 13:38:13 -08:00
2022-02-07 18:51:06 -08:00
2022-02-17 12:19:47 -08:00
2022-01-21 13:37:26 -08:00
2021-10-22 13:00:20 -07:00
2022-02-09 11:00:24 -08:00
2022-02-07 18:51:06 -08:00
2022-01-27 17:23:44 -08:00
2021-12-06 13:22:47 -08:00
2022-02-07 18:51:06 -08:00
2022-02-09 11:04:40 -08:00
2021-10-05 16:30:40 -07:00
2022-02-11 17:38:57 -08:00
2022-02-11 17:38:57 -08:00
2022-02-07 18:51:06 -08:00
2021-12-10 09:40:04 -08:00
2022-02-09 11:00:24 -08:00
2021-10-01 16:25:17 -07:00
2022-02-07 18:51:06 -08:00
2022-01-13 14:59:46 -08:00
2021-12-06 11:32:00 -08:00
2021-10-07 17:39:22 -07:00
2022-02-17 12:19:47 -08:00
2021-12-28 09:31:55 -08:00
2021-10-19 17:02:10 -07:00
2022-01-28 13:03:39 -08:00
2022-02-07 18:51:06 -08:00
2021-11-22 14:59:16 -08:00