Skip to content

Commit

Permalink
Merge pull request #78 from laws-africa/warning-fix
Browse files Browse the repository at this point in the history
silence lxml warning
  • Loading branch information
longhotsummer authored Jan 4, 2024
2 parents c1758c1 + 1e72b6b commit c0a9555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobalt/akn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0a9555

Please sign in to comment.