added an exception so it works with sidekiq