From 311c40dc7c424465db785572c735a13624ee7151 Mon Sep 17 00:00:00 2001 From: Henrik Riomar Date: Tue, 3 Dec 2024 16:39:59 +0100 Subject: [PATCH] fix Already initialized error text Should printout the shared obj we where initialized with, not the one we where trying to (re)initialize with. --- pkcs11/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkcs11/__init__.py b/pkcs11/__init__.py index 77ef7c0..cc3a8c2 100644 --- a/pkcs11/__init__.py +++ b/pkcs11/__init__.py @@ -23,7 +23,7 @@ def lib(so): if _lib: if _so != so: raise AlreadyInitialized( # noqa: F405 - "Already initialized with %s" % so + "Already initialized with %s" % _so ) else: return _lib