Skip to content

Commit e5ab0ba

Browse files
committed
chore: cleanup of err msg
1 parent 2e2bd23 commit e5ab0ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyeudiw/x509/verify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def to_DER_cert(cert: str | bytes) -> bytes:
151151
if _BASE64_RE.fullmatch(cert_s):
152152
return B64DER_cert_to_DER_cert(cert_s)
153153

154-
raise ValueError("unable to recognize input [cert] as a certificate")
154+
raise ValueError("unable to recognize input as a certificate")
155155

156156

157157
def to_PEM_cert(cert: str | bytes) -> str:
@@ -185,7 +185,7 @@ def to_PEM_cert(cert: str | bytes) -> str:
185185
except UnicodeError:
186186
return DER_cert_to_PEM_cert(cert_b)
187187

188-
raise ValueError("unable to recognize input [cert] as a certificate")
188+
raise ValueError("unable to recognize input as a certificate")
189189

190190
def pem_to_pems_list(cert: str) -> list[str]:
191191
"""

0 commit comments

Comments
 (0)