cron: fix undefined variable in exception handler.

This commit is contained in:
evazion
2021-09-28 16:34:05 -05:00
parent 126046cb69
commit a1d4408c29

View File

@@ -30,8 +30,8 @@ module DanbooruMaintenance
Rails.logger.level = :info
DanbooruLogger.info("Queueing #{job.name}")
job.perform_later
rescue Exception # rubocop:disable Lint/RescueException
rescue Exception => e # rubocop:disable Lint/RescueException
DanbooruLogger.log(exception)
raise exception if Rails.env.test?
raise e if Rails.env.test?
end
end