Skip to content

Commit 8b5c6d4

Browse files
committed
fix: Format
1 parent be49781 commit 8b5c6d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/c2pa/c2pa.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,8 @@ def __init__(self, file):
725725
Raises:
726726
TypeError: If the file object doesn't implement all required methods
727727
"""
728-
# Initialize _closed first to prevent AttributeError during garbage
729-
# collection
728+
# Initialize _closed first to prevent AttributeError
729+
# during garbage collection
730730
self._closed = False
731731
self._initialized = False
732732
self._stream = None
@@ -1301,7 +1301,7 @@ def from_info(cls, signer_info: C2paSignerInfo) -> 'Signer':
13011301
if error:
13021302
# More detailed error message when possible
13031303
raise C2paError(error)
1304-
raise C2paError("Failed to create signer from info")
1304+
raise C2paError("Failed to create signer from configured signer_info")
13051305

13061306
return cls(signer_ptr)
13071307

@@ -1855,8 +1855,8 @@ def _sign_internal(
18551855
# empty bytes
18561856
manifest_bytes = b""
18571857
finally:
1858-
# Always free the C-allocated memory, even if we failed to
1859-
# copy it
1858+
# Always free the C-allocated memory,
1859+
# even if we failed to copy manifest bytes
18601860
try:
18611861
_lib.c2pa_manifest_bytes_free(manifest_bytes_ptr)
18621862
except Exception:

0 commit comments

Comments
 (0)