Skip to content

Commit

Permalink
fix: do load extension interfaces if early parsing errors out
Browse files Browse the repository at this point in the history
Apparently we have not been loading them upon error in early parsing.
Debian has python 3.12 patched with some patches from what came after 3.14 (!)
and that broke that interface.  We silently just did not even try to
get those parsers in place.  With this change we would
  • Loading branch information
yarikoptic committed Nov 14, 2024
1 parent a2c30ce commit 7111448
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datalad/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ def setup_parser(

# when completing and we have no incomplete option or parameter
# we still need to offer all commands for completion
if (completing and status == 'allknown') or (
if ((completing and status == 'allknown') or (
status == 'subcommand' and parseinfo not in
get_commands_from_groups(interface_groups)):
get_commands_from_groups(interface_groups))
or status == 'error'):
# we know the command is not in the core package
# still a chance it could be in an extension
command_provider = 'extension'
Expand Down

0 comments on commit 7111448

Please sign in to comment.