From e74369aa4128e36083d78c5db6eb19ee2fb9c5f3 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sat, 2 Aug 2014 11:50:46 -0400 Subject: [PATCH] Rescue all exceptions when downloading docs --- lib/tasks/docs.thor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor index 78e90f45..d44f7efc 100644 --- a/lib/tasks/docs.thor +++ b/lib/tasks/docs.thor @@ -149,8 +149,8 @@ class DocsCLI < Thor status = begin download_doc(doc) 'OK' - rescue OpenURI::HTTPError => error - "FAILED (#{error.message})" + rescue => e + "FAILED (#{e.class}: #{e.message})" end puts "(#{i += 1}/#{length}) #{doc.name} #{status}" end