File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ def create_channel(
357
357
# If `ssl_credentials` is set and `attempt_direct_path` is set to `True`,
358
358
# raise ValueError as this is not yet supported.
359
359
# See https://github.com/googleapis/python-api-core/issues/590
360
- if ssl_credentials is not None and attempt_direct_path :
360
+ if ssl_credentials and attempt_direct_path :
361
361
raise ValueError ("Using ssl_credentials with Direct Path is not supported" )
362
362
363
363
composite_credentials = _create_composite_credentials (
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ def create_channel(
277
277
# If `ssl_credentials` is set and `attempt_direct_path` is set to `True`,
278
278
# raise ValueError as this is not yet supported.
279
279
# See https://github.com/googleapis/python-api-core/issues/590
280
- if ssl_credentials is not None and attempt_direct_path :
280
+ if ssl_credentials and attempt_direct_path :
281
281
raise ValueError ("Using ssl_credentials with Direct Path is not supported" )
282
282
283
283
composite_credentials = grpc_helpers ._create_composite_credentials (
You can’t perform that action at this time.
0 commit comments