diff options
author | elijah <elijah@riseup.net> | 2014-06-26 13:57:33 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-06-26 13:57:33 -0700 |
commit | 787eb366d80cee7c89348e11c1befa86255bbe85 (patch) | |
tree | 9605e9283f4760f0e63131532c28b9d643a4f523 /provider_base/lib/macros | |
parent | 89669fbc6d43590f73055c00ee0bb415d5c8eb3e (diff) |
make try{} macro also catch ArgumentErrors
Diffstat (limited to 'provider_base/lib/macros')
-rw-r--r-- | provider_base/lib/macros/core.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/provider_base/lib/macros/core.rb b/provider_base/lib/macros/core.rb index d4d9171f..609111ac 100644 --- a/provider_base/lib/macros/core.rb +++ b/provider_base/lib/macros/core.rb @@ -64,6 +64,7 @@ module LeapCli def try(&block) yield rescue NoMethodError + rescue ArgumentError nil end |