summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-13 21:04:17 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-13 21:04:17 +0100
commit864d3e2a1d6720f7db9c312a733d0fc0f906afb6 (patch)
tree1813b3ed36e2e8378839d9f4750a803f12460f93
parent[SimpleHoster] Fix https://github.com/pyload/pyload/issues/1248 (diff)
downloadpyload-864d3e2a1d6720f7db9c312a733d0fc0f906afb6.tar.xz
[UpdateManager] Fix https://github.com/pyload/pyload/issues/1225
-rw-r--r--module/plugins/hooks/UpdateManager.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py
index 45d666f45..c435d38b2 100644
--- a/module/plugins/hooks/UpdateManager.py
+++ b/module/plugins/hooks/UpdateManager.py
@@ -28,7 +28,7 @@ def exists(path):
class UpdateManager(Hook):
__name__ = "UpdateManager"
__type__ = "hook"
- __version__ = "0.44"
+ __version__ = "0.45"
__config__ = [("activated" , "bool" , "Activated" , True ),
("mode" , "pyLoad + plugins;plugins only", "Check updates for" , "pyLoad + plugins"),
@@ -205,7 +205,7 @@ class UpdateManager(Hook):
# Protect UpdateManager from self-removing
try:
blacklisted.remove(("hook", "UpdateManager"))
- except Exception:
+ except ValueError:
pass
for t, n in blacklisted:
@@ -314,7 +314,7 @@ class UpdateManager(Hook):
try:
os.remove(filename)
- except IOError, e:
+ except OSError, e:
self.logError(_("Error removing: %s") % filename, e)
else: