From bc8a243f2b427cb7d20da70c9024dcceafb3ee63 Mon Sep 17 00:00:00 2001 From: Andy Kipp Date: Tue, 28 May 2024 19:16:24 +0200 Subject: [PATCH] aliases.py: micro fix (#5454) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's after all merged features. ## For community ⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment** Co-authored-by: a <1@1.1> --- xonsh/aliases.py | 1 + 1 file changed, 1 insertion(+) diff --git a/xonsh/aliases.py b/xonsh/aliases.py index 9b01dd0ba..68cf3e3f2 100644 --- a/xonsh/aliases.py +++ b/xonsh/aliases.py @@ -169,6 +169,7 @@ class Aliases(cabc.MutableMapping): # only once. if ( isinstance(value, cabc.Iterable) + and hasattr(value, 'len') and len(value) > 1 and (isinstance(mod := self._raw.get(str(value[0])), SpecModifierAlias)) ):