Skip to content

Commit 7a9678d

Browse files
committed
Fixed catch scope
1 parent e0f4f23 commit 7a9678d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ydb/library/yql/providers/s3/actors/yql_s3_write_actor.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ class TS3FileWriteActor : public TActorBootstrapped<TS3FileWriteActor> {
157157
LOG_D("TS3FileWriteActor", "Bootstrap by " << ParentId << " for Key: [" << Key << "], Url: [" << Url << "], request id: [" << RequestId << "]");
158158
try {
159159
BeginPartsUpload(Credentials.GetAuthInfo());
160-
}
161-
catch (const yexception& ex) {
160+
} catch (...) {
162161
FailOnException();
163162
}
164163
}
@@ -424,8 +423,7 @@ class TS3FileWriteActor : public TActorBootstrapped<TS3FileWriteActor> {
424423
void SafeAbortMultipartUpload() {
425424
try {
426425
AbortMultipartUpload(Credentials.GetAuthInfo());
427-
}
428-
catch (const yexception& ex) {
426+
} catch (...) {
429427
LOG_W("TS3FileWriteActor", "Failed to abort multipart upload, error: " << CurrentExceptionMessage());
430428
}
431429
}

0 commit comments

Comments
 (0)