Handle domains with no history on domain_list

This commit is contained in:
nemunaire 2023-12-10 11:58:07 +01:00
parent af58391164
commit c32633ba09

View File

@ -15,7 +15,7 @@ class Domain:
self.domain = domain
self.group = group
if zone_history_are_ids:
self.zone_history = [UncompleteZoneMeta(self, zid) for zid in zone_history]
self.zone_history = [UncompleteZoneMeta(self, zid) for zid in zone_history] if zone_history is not None else []
else:
self.zone_history = zone_history if zone_history is not None else []