From f63ccee112e361ae66505e76283cc13fc2c9dbec Mon Sep 17 00:00:00 2001 From: Ryabin Sergey Date: Mon, 11 Nov 2013 10:56:48 +0400 Subject: [PATCH] [rubick] cli exception --- rubick/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rubick/cli.py b/rubick/cli.py index cf9f13f..7244eb8 100644 --- a/rubick/cli.py +++ b/rubick/cli.py @@ -96,7 +96,7 @@ def rubick_cluster_add(name, description, host, key): try: with open(key) as f: keyData = f.read() - except Exception: + except IOError: return 1 request_payload = {