Skip to content
Browse files

Fixed bug that caused unexpected multiple email deliveries on Ruby1.9…

….2/Rails3.0.7
  • Loading branch information...
1 parent e255d15 commit ba853a7ff50cccfb75eec8c17494fae4980484da @temochka temochka committed Aug 24, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −0 CHANGELOG.rdoc
  2. +1 −1 VERSION
  3. +1 −1 lib/postmark.rb
View
1 CHANGELOG.rdoc
@@ -3,6 +3,7 @@
== 0.9.7
* All delivery exceptions are now childs of Postmark::DeliveryError. Easier to rescue that way.
+* Fixed bug that caused unexpected multiple email deliveries on Ruby1.9.2/Rails3.0.7
== 0.9.6
View
2 VERSION
@@ -1 +1 @@
-0.9.7
+0.9.8
View
2 lib/postmark.rb
@@ -85,7 +85,7 @@ def send_through_postmark(message) #:nodoc:
@retries = 0
begin
HttpClient.post("email", Postmark::Json.encode(convert_message_to_options_hash(message)))
- rescue Exception => e
+ rescue DeliveryError => e
if @retries < max_retries
@retries += 1
retry

0 comments on commit ba853a7

Please sign in to comment.
Something went wrong with that request. Please try again.