ManageIQ/manageiq

View on GitHub
app/models/job.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
87%

Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
Open

    rescue Exception
      _log.error($!.to_s)
Severity: Minor
Found in app/models/job.rb by rubocop

Checks for rescue blocks targeting the Exception class.

Example:

# bad

begin
  do_something
rescue Exception
  handle_exception
end

Example:

# good

begin
  do_something
rescue ArgumentError
  handle_exception
end

There are no issues that match your filters.

Category
Status