Skip to content

Commit 6660d64

Browse files
committed
Fix raising CopySourceTooBig
1 parent 48a88e3 commit 6660d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

b2sdk/exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def interpret_b2_error(
580580
matcher = COPY_SOURCE_TOO_BIG_ERROR_MESSAGE_RE.match(message)
581581
assert matcher is not None, f"unexpected error message: {message}"
582582
size = int(matcher.group('size'))
583-
return CopySourceTooBig(size)
583+
return CopySourceTooBig((message, code, size)
584584
elif status == 400 and code == 'file_lock_conflict':
585585
return DisablingFileLockNotSupported()
586586
elif status == 400 and code == 'source_replication_conflict':

0 commit comments

Comments
 (0)