Skip to content

Conversation

@zyzip
Copy link

@zyzip zyzip commented Jul 20, 2023

When host is an empty string while instance is not specified, (host and instance) is not None will return True because (host and instance) will evaluate to ''. In this case the error message returned will be inappropriate and confusing because the caller didn't specify host.

When `host` is an empty string while `instance` is not specified, `(host and instance) is not None` will return `True` because `(host and instance)` will evaluate to `''`. In this case the error message returned will be inappropriate and confusing because the caller didn't specify `host`.
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