From 4f2809e22422dd508ca8d33e517b6d407913719a Mon Sep 17 00:00:00 2001 From: Mike Khiretskiy Date: Wed, 21 Oct 2015 18:12:24 +0300 Subject: [PATCH] Refactoring --- pym/update/variables/update.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index 6ace223..b53f068 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -305,6 +305,8 @@ class VariableClUpdateBinhostData(ReadonlyTableVariable): except urllib2.URLError as e: pass except BaseException as e: + if isinstance(e, KeyboardInterrupt): + raise pass return "", -1 @@ -916,7 +918,7 @@ class VariableClUpdateProfileUrl(Variable): return "" git = Git() return git.get_url(profile, "origin") or "" - except: + except Exception: pass return self.default_url @@ -979,7 +981,7 @@ class VariableClProfileRepository(ReadonlyVariable): return "" ls = LocalStorage(path.dirname(profile_dn)) return ProfileRepository(path.basename(profile_dn), ls) - except: + except Exception: return ""