Skip to content

Commit f39ef62

Browse files
author
yankev
committed
added help message
1 parent 5e734af commit f39ef62

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plotly/session.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ def sign_in(username, api_key, **kwargs):
7676
# raise error if key isn't valid anywhere
7777
for key in kwargs:
7878
if key not in CREDENTIALS_KEYS and key not in CONFIG_KEYS:
79-
raise exceptions.PlotlyError(
80-
"{} is not a valid config or credentials key".format(key)
81-
)
79+
raise exceptions.PlotlyError("{} is not a valid config or "
80+
"credentials key\n"
81+
"Type help(sign_in) for a full list "
82+
"of possbile sign in related "
83+
"keys".format(key))
8284

8385
# add credentials, raise error if type is wrong.
8486
for key in CREDENTIALS_KEYS:

0 commit comments

Comments
 (0)