Pārlūkot izejas kodu

Refactoring

tags/3.4.1.3
Mike Khiretskiy pirms 6 gadiem
vecāks
revīzija
4f2809e224
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. +4
    -2
      pym/update/variables/update.py

+ 4
- 2
pym/update/variables/update.py Parādīt failu

@@ -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 ""




Notiek ielāde…
Atcelt
Saglabāt