mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 16:55:08 +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.