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

Fix connected_url to return ParseResult #285

Merged
merged 1 commit into from
Mar 21, 2022
Merged

Conversation

nosammai
Copy link

@nosammai nosammai commented Mar 5, 2022

Fixes connected_url property to return the ParseResult object instead of a string representation like 'ParseResult(scheme=\'nats\', netloc=\'localhost:4222\', path=\'\', params=\'\', query=\'\', fragment=\'\')'

This was broken in a recent update, and makes the examples that print nc.connected_url.netloc throw an Exception: AttributeError: 'str' object has no attribute 'netloc'

Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@wallyqs wallyqs merged commit 77638df into nats-io:main Mar 21, 2022
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.

2 participants