Skip to content

Commit fb86798

Browse files
GitHKAndrei Neagu
andauthored
🐛 remove noisy errors form logs (#7094)
Co-authored-by: Andrei Neagu <[email protected]>
1 parent 69cf7cb commit fb86798

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/simcore-sdk/src/simcore_sdk/node_ports_common/aws_s3_cli_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
def _parse_size(log_string):
1414
match = re.search(r"^\w+ (?P<size>[^\/]+)", log_string)
1515
if match:
16-
return match.group("size")
16+
# NOTE: ByteSize does not know what `Bytes` or `Byte` are.
17+
# It only knows about `b` and omitting the word bytes if they are just bytes.
18+
return match.group("size").replace("Bytes", "").replace("Byte", "")
1719
return None
1820

1921

0 commit comments

Comments
 (0)