def download_file(self, s3_key, local_path):
    s3_client = self.get_client()
    try:
        s3_client.download_file(self.bucket, s3_key, local_path)
        return True
    except botocore.exceptions.ClientError as err:
        if (err.response['Error']['Code'] == '404'):
            return False
        else:
            log_and_exit('Unable to download file', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_400)
    except Exception:
        log_and_exit('Unable to download file', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_500)
def download_file(self, s3_key, local_path):
    s3_client = self.get_client()
    try:
        s3_client.download_file(self.bucket, s3_key, local_path)
        return True
    except botocore.exceptions.ClientError as err:
        if (err.response['Error']['Code'] == '404'):
            return False
        else:
            log_and_exit('Unable to download file', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_400)
    except Exception:
        log_and_exit('Unable to download file', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_500)