simplews 1.10.1 → 1.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/simplews/notifier.rb +8 -5
  2. metadata +2 -2
@@ -49,12 +49,15 @@ class SimpleWS::Jobs::Notifier
49
49
  def process
50
50
  @jobs.each do |job_id, email|
51
51
  if driver.done job_id
52
- if driver.error job_id
53
- error(job_id, email, driver.messages(job_id).last)
54
- else
55
- success(job_id, email)
52
+ begin
53
+ if driver.error job_id
54
+ error(job_id, email, driver.messages(job_id).last)
55
+ else
56
+ success(job_id, email)
57
+ end
58
+ ensure
59
+ delete_job(job_id)
56
60
  end
57
- delete_job(job_id)
58
61
  end
59
62
  end
60
63
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 10
8
- - 1
9
- version: 1.10.1
8
+ - 2
9
+ version: 1.10.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Miguel Vazquez