From 5f9b52f338b6a2c1b57cbc2ee1cbf4abf8637da2 Mon Sep 17 00:00:00 2001 From: "tim.reichard" Date: Mon, 13 Mar 2023 14:46:15 -0500 Subject: [PATCH] Raise error instead of printing in file_ingestion function xlsx_to_tsv --- HISTORY.rst | 5 +++++ aioradio/file_ingestion.py | 3 +-- setup.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 29c7bc8..4ee357a 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,11 @@ History ======= +v0.17.36 (2023-03-13) + +* Raise error instead of printing in file_ingestion function xlsx_to_tsv. + + v0.17.35 (2023-02-23) * Create function check_phone_number in efi parsing. diff --git a/aioradio/file_ingestion.py b/aioradio/file_ingestion.py index 9226efe..dde3300 100644 --- a/aioradio/file_ingestion.py +++ b/aioradio/file_ingestion.py @@ -1665,8 +1665,7 @@ async def xlsx_to_tsv( await tsv_to_s3(records, delimiter, s3_destination_bucket, s3_destination_key) except Exception as err: - print(err) - return str(err) + raise ValueError('xlsx_to_tsv function failed') from err return None diff --git a/setup.py b/setup.py index b4e1487..6f1728f 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ long_description = fileobj.read() setup(name='aioradio', - version='0.17.35', + version='0.17.36', description='Generic asynchronous i/o python utilities for AWS services (SQS, S3, DynamoDB, Secrets Manager), Redis, MSSQL (pyodbc), JIRA and more', long_description=long_description, long_description_content_type="text/markdown",