From 418e1f7c0bc0d1131f8427e47cec4c2ba4c6a3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 15 Oct 2024 23:05:10 +0200 Subject: [PATCH] Refactor UserServiceManager to raise MaxServicesReachedError when the maximum number of preparing services is reached --- server/src/uds/core/managers/userservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/uds/core/managers/userservice.py b/server/src/uds/core/managers/userservice.py index 18def3d68..a60fd8ffa 100644 --- a/server/src/uds/core/managers/userservice.py +++ b/server/src/uds/core/managers/userservice.py @@ -209,7 +209,7 @@ class UserServiceManager(metaclass=singleton.Singleton): operations_logger.info( 'Too many preparing services. Creation of assigned service denied by max preparing services parameter. (login storm with insufficient cache?).' ) - raise ServiceNotReadyError() + raise MaxServicesReachedError() if service_pool.service.get_type().publication_type is not None: publication = service_pool.active_publication()