File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -278,13 +278,13 @@ def _parse_query_params(uri: str, query_string: str) -> _QueryParams:
278278 }
279279
280280 if ssl is False :
281- erros = []
281+ errors = []
282282 for opt_name , opt in ssl_opts .items ():
283283 if opt is not None :
284- erros .append (opt_name )
285- if erros :
284+ errors .append (opt_name )
285+ if errors :
286286 raise ValueError (
287- f"Option(s) { ', ' .join (erros )} found in URI { uri !r} , but SSL is disabled" ,
287+ f"Option(s) { ', ' .join (errors )} found in URI { uri !r} , but SSL is disabled" ,
288288 )
289289
290290 keep_alive_option = options .pop ("keep_alive" , None )
@@ -298,13 +298,13 @@ def _parse_query_params(uri: str, query_string: str) -> _QueryParams:
298298 }
299299
300300 if keep_alive is False :
301- erros = []
301+ errors = []
302302 for opt_name , opt in keep_alive_opts .items ():
303303 if opt is not None :
304- erros .append (opt_name )
305- if erros :
304+ errors .append (opt_name )
305+ if errors :
306306 raise ValueError (
307- f"Option(s) { ', ' .join (erros )} found in URI { uri !r} , but keep_alive is disabled" ,
307+ f"Option(s) { ', ' .join (errors )} found in URI { uri !r} , but keep_alive is disabled" ,
308308 )
309309
310310 if options :
You can’t perform that action at this time.
0 commit comments