Skip to content

Conversation

@ReaNAiveD
Copy link

@ReaNAiveD ReaNAiveD commented Aug 25, 2023

Related Issue
Azure/azure-cli#27228

Description
If query_expression.search raises an Exception, the following line cli_ctx.unregister_event(EVENT_INVOKER_FILTER_RESULT, filter_output) won't be executed, and the callback with error remains in the _event_handlers.
image
Az Interactive uses the same cli_ctx for every command execution, so if there is an exception related to --query, it will keep happening for any subsequent commands.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant