lib/ezlog/sidekiq/job_context.rb in ezlog-0.7.0 vs lib/ezlog/sidekiq/job_context.rb in ezlog-0.7.1
- old
+ new
@@ -1,9 +1,10 @@
module Ezlog
module Sidekiq
class JobContext
class << self
def from_job_hash(job_hash)
+ return {} if job_hash.nil?
basic_info_from(job_hash).merge named_arguments_from(job_hash)
end
private