Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update support contact details #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
1 change: 1 addition & 0 deletions nasdaqdatalink/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SUPPORT_EMAIL = '[email protected]'
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 [email protected].'
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='[email protected]',
author_email=SUPPORT_EMAIL,
maintainer='Nasdaq Data Link Development Team',
maintainer_email='[email protected]',
maintainer_email=SUPPORT_EMAIL,
url='https://github.com/Nasdaq/data-link-python',
license='MIT',
classifiers=[
Expand Down