Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new utils function to merge dictionaries deeply, BaseParser.parse_error was improved to handle more type of exceptions. #704

Closed

Conversation

baranbartu
Copy link

With this PR, we will be able to merge dictionaries deeply using "dict_deep_merge" function. Also i ve changed the parse_error logic to handle more types of exceptions like below.

'ERR': {
'max number of clients reached': ConnectionError
'Unknown node': UnknownNodeError
}

Currently, i am developing something to manage redis cluster and i need to write my own parser which is ClusterParser. I need to extend EXCEPTION_CLASSES on BaseParser with mine, cause i should parse ResponseError('ERR Unknown node 012e6851abadb8c1c948c0f1cbbe7f68deb8bd24') into UnknownNodeError <node_id>. So with this implementation, everyone can write their own parsers easily.

@github-actions
Copy link
Contributor

This pull request is marked stale. It will be closed in 30 days if it is not updated.

@github-actions github-actions bot added the Stale label Jul 31, 2020
@github-actions github-actions bot closed this Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant