From 184d3e7da523e93188c44d5bbf5379dc2148e581 Mon Sep 17 00:00:00 2001 From: Jamie Couture Date: Wed, 5 Oct 2022 10:06:22 -0400 Subject: [PATCH] update support contact details Replace support email details. While we're at it, simplify maintenance by using constants instead. Signed-off-by: Jamie Couture --- nasdaqdatalink/constants.py | 1 + nasdaqdatalink/errors/data_link_error.py | 7 +++++-- setup.py | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 nasdaqdatalink/constants.py diff --git a/nasdaqdatalink/constants.py b/nasdaqdatalink/constants.py new file mode 100644 index 0000000..8cfd8ff --- /dev/null +++ b/nasdaqdatalink/constants.py @@ -0,0 +1 @@ +SUPPORT_EMAIL = 'clientsuccess@nasdaq.com' diff --git a/nasdaqdatalink/errors/data_link_error.py b/nasdaqdatalink/errors/data_link_error.py index 427d0e2..217cbdf 100644 --- a/nasdaqdatalink/errors/data_link_error.py +++ b/nasdaqdatalink/errors/data_link_error.py @@ -1,6 +1,9 @@ +from ..constants import SUPPORT_EMAIL + + class DataLinkError(RuntimeError): - GENERIC_ERROR_MESSAGE = 'Something went wrong. Please try again. \ -If you continue to have problems, please contact us at connect@data.nasdaq.com.' + GENERIC_ERROR_MESSAGE = f'Something went wrong. Please try again. \ +If you continue to have problems, please contact us at %{SUPPORT_EMAIL}' def __init__(self, data_link_message=None, http_status=None, http_body=None, http_headers=None, data_link_error_code=None, response_data=None): diff --git a/setup.py b/setup.py index 0e2acd0..01963c8 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ # can only import VERSION successfully after the above line # ignore flake8 warning that requires imports to be at the top from version import VERSION # NOQA +from constants import SUPPORT_EMAIL # NOQA INSTALL_REQUIRES = [ 'pandas >= 0.14', @@ -63,9 +64,9 @@ long_description=LONG_DESCRIPTION, version=VERSION, author='Nasdaq Data Link', - author_email='connect@data.nasdaq.com', + author_email=SUPPORT_EMAIL, maintainer='Nasdaq Data Link Development Team', - maintainer_email='connect@data.nasdaq.com', + maintainer_email=SUPPORT_EMAIL, url='https://github.com/Nasdaq/data-link-python', license='MIT', classifiers=[