From 7cbeea146d2556f459f9782392e2897ff91db56f Mon Sep 17 00:00:00 2001 From: whistleradrien Date: Sun, 26 Apr 2026 09:33:35 -0700 Subject: [PATCH] Update geometry_graph.py - updated pop arguments to still works if there is no None items. --- src/papermodels/datatypes/geometry_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/papermodels/datatypes/geometry_graph.py b/src/papermodels/datatypes/geometry_graph.py index 46afba6..9d771a3 100644 --- a/src/papermodels/datatypes/geometry_graph.py +++ b/src/papermodels/datatypes/geometry_graph.py @@ -1088,7 +1088,7 @@ def from_annotations( structural_element_entries, extent_entries ) tag_counter = Counter(tag_checker) - tag_counter.pop(None) # Exclude None tags from the check + tag_counter.pop(None, None) # Exclude None tags from the check (still works if there are no None) duplicate_tags = [tag for tag in tag_counter if tag_counter[tag] > 1] if duplicate_tags: raise ValueError(