diff options
author | 2015-01-13 23:14:50 +0100 | |
---|---|---|
committer | 2015-01-13 23:14:50 +0100 | |
commit | e1baccf1ec914563d3b2b845906cce024e7cd3b1 (patch) | |
tree | 7113e8923ea58112787ce93d5ab9d98e277926c9 /module/plugins/hooks/UpdateManager.py | |
parent | [SimpleCrypter] Better account retrieving (diff) | |
download | pyload-e1baccf1ec914563d3b2b845906cce024e7cd3b1.tar.xz |
Replace 'except' with 'except Exception'
Diffstat (limited to 'module/plugins/hooks/UpdateManager.py')
-rw-r--r-- | module/plugins/hooks/UpdateManager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index c72699228..03b9ba6a4 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -117,7 +117,7 @@ class UpdateManager(Hook): def server_request(self): try: return getURL(self.SERVER_URL, get={'v': self.core.api.getServerVersion()}).splitlines() - except: + except Exception: self.logWarning(_("Unable to contact server to get updates")) @@ -192,7 +192,7 @@ class UpdateManager(Hook): # Protect UpdateManager from self-removing try: blacklisted.remove(("hook", "UpdateManager")) - except: + except Exception: pass for t, n in blacklisted: |