diff --git a/services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/user_services_preferences/_db.py b/services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/user_services_preferences/_db.py index 3b7986c9069..f2cc53a0d9d 100644 --- a/services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/user_services_preferences/_db.py +++ b/services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/user_services_preferences/_db.py @@ -1,6 +1,6 @@ from pathlib import Path -import msgpack # type: ignore[import-untyped] +import umsgpack # type: ignore[import-untyped] from models_library.products import ProductName from models_library.services import ServiceKey, ServiceVersion from models_library.user_preferences import PreferenceName @@ -48,7 +48,7 @@ async def save_preferences( preference_name=_get_db_preference_name( preference_class.get_preference_name(), service_version ), - payload=msgpack.packb(preference.to_db()), + payload=umsgpack.packb(preference.to_db()), ) @@ -73,5 +73,5 @@ async def load_preferences( if payload is None: return - preference = parse_obj_as(preference_class, msgpack.unpackb(payload)) + preference = parse_obj_as(preference_class, umsgpack.unpackb(payload)) await dir_from_bytes(preference.value, user_preferences_path)