mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-12 16:44:46 +08:00
The previous code could attempt to log a `nil` `run_time` if the block would raise an exception. This commit adds two safeguards: - rescue any exception to still compute `run_time` - defaults to `0` if we still don't have any `run_time` |
||
|---|---|---|
| .. | ||
| controllers/discourse_automation | ||
| jobs | ||
| models/discourse_automation | ||
| serializers/discourse_automation | ||
| services/discourse_automation | ||