Skip to content

Commit 3460e03

Browse files
committed
test bucket in TF IV
1 parent 05cf3dd commit 3460e03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lambdas/filenameprocessor/src/file_name_processor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import argparse
1010
import os
11+
import traceback
1112
from uuid import uuid4
1213

1314
from botocore.exceptions import ClientError
@@ -126,8 +127,8 @@ def handle_record(record) -> dict:
126127
ExpectedBucketOwner=EXPECTED_BUCKET_OWNER_ACCOUNT,
127128
ExpectedSourceBucketOwner=EXPECTED_BUCKET_OWNER_ACCOUNT,
128129
)
129-
except Exception as e:
130-
e.printStackTrace()
130+
except Exception:
131+
logger.info(traceback.format_exc())
131132

132133
logger.info("Lambda invocation successful for file '%s'", file_key)
133134

0 commit comments

Comments
 (0)