diff options
Diffstat (limited to 'module/PyFile.py')
-rw-r--r-- | module/PyFile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/PyFile.py b/module/PyFile.py index 45add5a47..dc6a09025 100644 --- a/module/PyFile.py +++ b/module/PyFile.py @@ -120,7 +120,7 @@ class PyFile(): """sync and remove from cache""" self.sync() - if hasattr(self, "plugin"): + if hasattr(self, "plugin") and self.plugin: self.plugin.clean() del self.plugin |