2016-03-11 | Paul Boddie | raw files shortlog changelog graph | Handle a missing counters file. | freebusy-collections |
imiptools/stores/file.py (file) |
1.1 --- a/imiptools/stores/file.py Fri Mar 11 01:33:45 2016 +0100 1.2 +++ b/imiptools/stores/file.py Fri Mar 11 18:33:57 2016 +0100 1.3 @@ -621,7 +621,7 @@ 1.4 """ 1.5 1.6 filename = self.get_event_filename(user, uid, recurrenceid, "counters", other) 1.7 - if not filename: 1.8 + if not filename or not isfile(filename): 1.9 return False 1.10 1.11 return self._get_object(user, filename)