diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-11 18:20:49 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-11 18:20:49 +0100 |
commit | 9332d43f7f65e876bb175c31d2d2e0aba755b6f2 (patch) | |
tree | d10ecd9b13c3562173c7e215f69f571226aa4121 /module | |
parent | closed #455 (diff) | |
download | pyload-9332d43f7f65e876bb175c31d2d2e0aba755b6f2.tar.xz |
closed #449
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hooks/UpdateManager.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index 46ca5cc4b..920a88060 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -21,7 +21,7 @@ import sys import re from os import stat -from os.path import join +from os.path import join, exists from time import time from module.ConfigParser import IGNORE @@ -180,7 +180,10 @@ class UpdateManager(Hook): root, type, name = m.__name__.rsplit(".", 2) id = (type, name) if type in self.core.pluginManager.plugins: - mtime = stat(m.__file__.replace(".pyc", ".py")).st_mtime + f = m.__file__.replace(".pyc", ".py") + if not exists(f): continue + + mtime = stat(f).st_mtime if id not in self.mtimes: self.mtimes[id] = mtime |