mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-15 15:30:36 +00:00
python: match backend switch error text
This commit is contained in:
@@ -230,8 +230,8 @@ def lib_for(backend: Backend) -> ctypes.CDLL:
|
||||
if _lib is not None:
|
||||
if _backend != backend:
|
||||
raise RuntimeError(
|
||||
f"libsimplex already loaded with backend={_backend!r}; "
|
||||
f"cannot switch to {backend!r} in the same process"
|
||||
f"libsimplex already loaded with backend={_backend}; "
|
||||
f"cannot switch to {backend} in the same process"
|
||||
)
|
||||
return _lib
|
||||
libs_dir = _resolve_libs_dir(backend)
|
||||
|
||||
Reference in New Issue
Block a user