From a30ec44f39f28407f6a9f0fa826f642737f329c5 Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Wed, 23 Aug 2023 17:21:40 -0600 Subject: [PATCH] Fixup type error --- qgreenland/util/tree.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qgreenland/util/tree.py b/qgreenland/util/tree.py index 5b4ec8ce..c8346c13 100644 --- a/qgreenland/util/tree.py +++ b/qgreenland/util/tree.py @@ -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]