mirror of
https://github.com/discourse/discourse.git
synced 2025-02-10 13:24:55 +00:00
Since this is rare, we don't want to check for `Discourse.pg_readonly_mode?` on every request since we have to reach for Redis. Instead, just rescue the error here.