diff --git a/cobalt/akn.py b/cobalt/akn.py index 6c23904..4a5ac55 100644 --- a/cobalt/akn.py +++ b/cobalt/akn.py @@ -449,7 +449,7 @@ def get_portion_element(self, portion, component=None): Range portions (eg. `chp_1->chp_3`) are not supported by this function. """ - root = component or self.root + root = component if component is not None else self.root if portion in self.non_eid_portions: # these are valid portions that don't have eids