Permalink
Browse files

Rescue form TimeoutError.

  • Loading branch information...
1 parent e71eeca commit c0f0d23f1eed6c7cead492cce266aa9fb17b0eaa @miloops committed Jul 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bravo/bill.rb
View
@@ -110,7 +110,7 @@ def next_bill_number
end
resp.to_hash[:fe_comp_ultimo_autorizado_response][:fe_comp_ultimo_autorizado_result][:cbte_nro].to_i + 1
- rescue Curl::Err::GotNothingError
+ rescue Curl::Err::GotNothingError, Curl::Err::TimeoutError
nil
end
end

0 comments on commit c0f0d23

Please sign in to comment.