From 1601fb381cebe3a379cb3f7dad6584f89c63e4fa Mon Sep 17 00:00:00 2001 From: Iakov Gan Date: Thu, 11 Jan 2024 13:00:40 +0100 Subject: [PATCH] release 0.2.41 --- cfn-templates/cid-cfn.yml | 4 ++-- cid/_version.py | 2 +- cid/helpers/csv2view.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cfn-templates/cid-cfn.yml b/cfn-templates/cid-cfn.yml index 6d94e45b..bb21ecb0 100644 --- a/cfn-templates/cid-cfn.yml +++ b/cfn-templates/cid-cfn.yml @@ -1,5 +1,5 @@ AWSTemplateFormatVersion: '2010-09-09' -Description: Deployment of Cloud Intelligence Dashboards v0.2.40 +Description: Deployment of Cloud Intelligence Dashboards v0.2.41 Metadata: AWS::CloudFormation::Interface: ParameterGroups: @@ -1506,7 +1506,7 @@ Resources: Description: An AWS managed layer with a cid-cmd package installed Content: S3Bucket: !Sub '${LambdaLayerBucketPrefix}-${AWS::Region}' - S3Key: 'cid-resource-lambda-layer/cid-0.2.40.zip' #replace version here if needed + S3Key: 'cid-resource-lambda-layer/cid-0.2.41.zip' #replace version here if needed CompatibleRuntimes: - python3.10 diff --git a/cid/_version.py b/cid/_version.py index 063d5248..a861be82 100644 --- a/cid/_version.py +++ b/cid/_version.py @@ -1,2 +1,2 @@ -__version__ = '0.2.40' +__version__ = '0.2.41' diff --git a/cid/helpers/csv2view.py b/cid/helpers/csv2view.py index 17265195..0621c2d3 100644 --- a/cid/helpers/csv2view.py +++ b/cid/helpers/csv2view.py @@ -27,7 +27,7 @@ def read_csv(input_file_name): sniffer = csv.Sniffer() try: # AWS Organization returns a CSV with a BOM (byte order mark) character = U+FEFF to specify encoding - first_character = open(input_file_name).read(1) + first_character = open(input_file_name, errors='ignore').read(1) encoding = 'utf-8-sig' if first_character == '\ufeff' else 'utf-8' with open(input_file_name, encoding=encoding, errors='ignore') as file_: