Skip to content

Commit cdf5ac3

Browse files
committed
fix: Format
1 parent a862342 commit cdf5ac3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/c2pa/c2pa.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,10 +2269,11 @@ def sign_file(self,
22692269

22702270
try:
22712271
# Open source file and destination file, then use the sign method
2272-
with open(source_path, 'rb') as source_file, open(dest_path, 'w+b') as dest_file:
2272+
with open(source_path, 'rb') as source_file, \
2273+
open(dest_path, 'w+b') as dest_file:
22732274
return self.sign(signer, mime_type, source_file, dest_file)
22742275
except Exception as e:
2275-
raise C2paError(f"Error signing file: {str(e)}")
2276+
raise C2paError(f"Error signing file: {str(e)}") from e
22762277

22772278

22782279
def format_embeddable(format: str, manifest_bytes: bytes) -> tuple[int, bytes]:

0 commit comments

Comments
 (0)