1.1 --- a/imiptools/handlers/person.py Fri Jan 12 19:11:13 2018 +0100
1.2 +++ b/imiptools/handlers/person.py Fri Jan 12 19:20:38 2018 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Handlers for a person for whom scheduling is performed.
1.6
1.7 -Copyright (C) 2014, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2014, 2015, 2016, 2017, 2018 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -247,9 +247,15 @@
1.13 attendees.
1.14 """
1.15
1.16 + # Handle missing objects.
1.17 +
1.18 + obj = self.get_stored_object_version()
1.19 +
1.20 + if not obj:
1.21 + return False
1.22 +
1.23 # Filter by stored attendees.
1.24
1.25 - obj = self.get_stored_object_version()
1.26 stored_attendees = set(obj.get_values("ATTENDEE"))
1.27 attendees = stored_attendees.intersection(attendees)
1.28