From 4c61450f1365c48215f5ef215dae45212ea4fd83 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Mon, 26 Dec 2022 20:21:20 +0900 Subject: [PATCH] Update error codes following merge --- spacy/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/util.py b/spacy/util.py index 8cda71b22..f3d5046be 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -1763,13 +1763,13 @@ def find_available_port(start, host, auto_select=False): port = start if not auto_select: - raise ValueError(Errors.E1049.format(port=port)) + raise ValueError(Errors.E1050.format(port=port)) while is_port_in_use(port, host) and port < 65535: port += 1 if port == 65535 and is_port_in_use(port, host): - raise ValueError(Errors.E1048.format(host=host)) + raise ValueError(Errors.E1049.format(host=host)) # if we get here, the port changed warnings.warn(Warnings.W124.format(host=host, port=start, serve_port=port))