Fix pop_named() sometimes generates an exception
@@ -147,7 +147,8 @@ class HolidayBase(dict):
def get_named(self, name):
# find all dates matching provided name (accepting partial
# strings too, case insensitive), returning them in a list
- return [key for key in self if name.lower() in self[key].lower()]
+ matches = [key for key in self if name.lower() in self[key].lower()]
+ return matches
def pop(self, key, default=None):
if default is None:
