반응형
TypeError: sequence item 5: expected str instance, NoneType found 해결
Trouble shooting2023. 3. 29. 17:14TypeError: sequence item 5: expected str instance, NoneType found 해결

OJT 프로젝트를 진행하는데 boto3로 s3를 조회해서 출력하고 Slack으로 보내는 실습을 진행하다가 다음과 같은 에러가 발생했다. 코드 # boto3 S3 클라이언트 생성 s3 = session.client('s3') # S3 버킷 리스트 가져오기 response = s3.list_buckets() # S3 버킷 이름 리스트 생성 bucket_name_list = [] # S3 버킷 리전 리스트 생성 bucket_region_list = [] # S3 버킷 생성 일자 리스트 생성 bucket_create_date_list = [] # 각 버킷의 정보를 출력 for bucket in response['Buckets']: bucket_name = bucket['Name'] bucket_name_list..

반응형
image