lib/switchman/standard_error.rb in switchman-3.0.21 vs lib/switchman/standard_error.rb in switchman-3.0.22
- old
+ new
@@ -10,14 +10,10 @@
return if Thread.current[:switchman_error_handler]
begin
Thread.current[:switchman_error_handler] = true
- begin
- @active_shards ||= Shard.active_shards if defined?(Shard)
- rescue
- # If we hit an error really early in boot, activerecord may not be initialized yet
- end
+ @active_shards ||= Shard.active_shards
ensure
Thread.current[:switchman_error_handler] = nil
end
end