Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update support contact details
Replace support email details.  While we're at it, simplify maintenance
by using constants instead.

Signed-off-by: Jamie Couture <jamie.couture@nasdaq.com>
  • Loading branch information
couture-ql committed Oct 5, 2022
commit 184d3e7da523e93188c44d5bbf5379dc2148e581
1 change: 1 addition & 0 deletions nasdaqdatalink/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SUPPORT_EMAIL = 'clientsuccess@nasdaq.com'
7 changes: 5 additions & 2 deletions nasdaqdatalink/errors/data_link_error.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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=[
Expand Down