# HG changeset patch # User Paul Boddie # Date 1515781238 -3600 # Node ID 4c64472f46b28af94cc87d5d3e3efe394358903f # Parent 564a684025ff99a1ed0adebdc1c4204642c329a2 Handle missing stored objects referenced by incoming REFRESH messages. diff -r 564a684025ff -r 4c64472f46b2 imiptools/handlers/person.py --- a/imiptools/handlers/person.py Fri Jan 12 19:11:13 2018 +0100 +++ b/imiptools/handlers/person.py Fri Jan 12 19:20:38 2018 +0100 @@ -3,7 +3,7 @@ """ Handlers for a person for whom scheduling is performed. -Copyright (C) 2014, 2015, 2016, 2017 Paul Boddie +Copyright (C) 2014, 2015, 2016, 2017, 2018 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -247,9 +247,15 @@ attendees. """ + # Handle missing objects. + + obj = self.get_stored_object_version() + + if not obj: + return False + # Filter by stored attendees. - obj = self.get_stored_object_version() stored_attendees = set(obj.get_values("ATTENDEE")) attendees = stored_attendees.intersection(attendees)