Skip to content

remove support email from error messages #682

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

Merged
merged 1 commit into from
Feb 2, 2017
Merged
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
8 changes: 4 additions & 4 deletions plotly/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,17 +386,17 @@ def embed(file_owner_or_url, file_id=None, width="100%", height=525):
else:
if (get_config_defaults()['plotly_domain']
!= session.get_session_config()['plotly_domain']):
feedback_email = 'feedback@plot.ly'
feedback_contact = 'Visit support.plot.ly'
else:

# different domain likely means enterprise
feedback_email = 'support@plot.ly'
feedback_contact = 'Contact your On-Premise account executive'

warnings.warn(
"Looks like you're not using IPython or Sage to embed this "
"plot. If you just want the *embed code*,\ntry using "
"`get_embed()` instead."
'\nQuestions? {}'.format(feedback_email))
'\nQuestions? {}'.format(feedback_contact))


### mpl-related tools ###
Expand Down Expand Up @@ -1393,7 +1393,7 @@ def return_figure_from_figure_or_data(figure_or_data, validate_figure):
raise exceptions.PlotlyEmptyDataError(
"Empty data list found. Make sure that you populated the "
"list of data objects you're sending and try again.\n"
"Questions? support@plot.ly"
"Questions? Visit support.plot.ly"
)

return figure
Expand Down