mirror of
https://gitea.invidious.io/iv-org/instances-api.git
synced 2024-08-15 00:53:15 +00:00
Fix error handling for uptime monitors
This commit is contained in:
parent
0e888b0857
commit
3a8481e453
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ spawn do
|
|||
break
|
||||
end
|
||||
rescue ex
|
||||
error_message = response.try &.["errorStats"]?
|
||||
error_message = response.try &.as?(String).try &.["errorStats"]?
|
||||
error_message ||= ex.message
|
||||
puts "Exception pulling monitors: #{error_message}"
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue