File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ def _raise_not_supported(feature: str) -> None:
278
278
ERR_PROTOCOL_HANDLER_FAILED = 2056
279
279
ERR_PASSWORD_TYPE_HANDLER_FAILED = 2057
280
280
ERR_PLAINTEXT_PASSWORD_IN_CONFIG = 2058
281
+ ERR_MISSING_CONNECT_DESCRIPTOR = 2059
281
282
282
283
# error numbers that result in NotSupportedError
283
284
ERR_TIME_NOT_SUPPORTED = 3000
@@ -648,6 +649,9 @@ def _raise_not_supported(feature: str) -> None:
648
649
'a bind variable replacement value for placeholder ":{name}" was '
649
650
"not provided"
650
651
),
652
+ ERR_MISSING_CONNECT_DESCRIPTOR : (
653
+ '"connect_descriptor" key missing from configuration'
654
+ ),
651
655
ERR_MISSING_FILE : "file '{file_name}' is missing or unreadable" ,
652
656
ERR_MISSING_ENDING_DOUBLE_QUOTE : 'missing ending quote (")' ,
653
657
ERR_MISSING_ENDING_SINGLE_QUOTE : "missing ending quote (')" ,
Original file line number Diff line number Diff line change @@ -122,8 +122,9 @@ cdef class ConnectParamsImpl:
122
122
configuration.
123
123
"""
124
124
connect_string = config.get(" connect_descriptor" )
125
- if connect_string is not None :
126
- self .parse_connect_string(connect_string)
125
+ if connect_string is None :
126
+ errors._raise_err(errors.ERR_MISSING_CONNECT_DESCRIPTOR)
127
+ self .parse_connect_string(connect_string)
127
128
if self .user is None and self ._password is None :
128
129
user = config.get(" user" )
129
130
password = config.get(" password" )
You can’t perform that action at this time.
0 commit comments