diff options
-rw-r--r-- | src/lib/Server/Plugin.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index 829ab64fd..ff6eb9f22 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -192,8 +192,10 @@ class FileBacked(object): self.data = '' self.name = name - def HandleEvent(self, _=None): + def HandleEvent(self, event=None): '''Read file upon update''' + if event and event.code2str() not in ['exists', 'changed']: + return try: self.data = file(self.name).read() self.Index() |