summaryrefslogtreecommitdiff
path: root/provider_base
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-26 13:57:33 -0700
committerelijah <elijah@riseup.net>2014-06-26 13:57:33 -0700
commit787eb366d80cee7c89348e11c1befa86255bbe85 (patch)
tree9605e9283f4760f0e63131532c28b9d643a4f523 /provider_base
parent89669fbc6d43590f73055c00ee0bb415d5c8eb3e (diff)
make try{} macro also catch ArgumentErrors
Diffstat (limited to 'provider_base')
-rw-r--r--provider_base/lib/macros/core.rb1
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