Skip to content

Commit

Permalink
Fixup type error
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Aug 23, 2023
1 parent bb50c01 commit a30ec44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qgreenland/util/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,13 @@ def _manual_ordering_strategy(
raise TypeError("This should never happen")

matches = funcy.lfilter(matcher, layers_and_groups)
layers_and_groups_str = [
e.id if isinstance(e, Layer) else e for e in layers_and_groups
]
if len(matches) != 1:
raise RuntimeError(
f"Expected to find {thing_desc}. Found: {matches} in"
f" {[e.id for e in layers_and_groups]}",
f" {layers_and_groups_str}",
)

thing = matches[0]
Expand Down

0 comments on commit a30ec44

Please sign in to comment.