From 864d3e2a1d6720f7db9c312a733d0fc0f906afb6 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 13 Mar 2015 21:04:17 +0100 Subject: [UpdateManager] Fix https://github.com/pyload/pyload/issues/1225 --- module/plugins/hooks/UpdateManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hooks') 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: -- cgit v1.2.3