Skip to content

Commit e3f8e5f

Browse files
Fix Typo
Signed-off-by: Florian Wagner <[email protected]>
1 parent 97946f0 commit e3f8e5f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/frequenz/client/base/channel.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)