Skip to content

Commit 6ea4e6d

Browse files
committed
edit value error
1 parent 94a55f9 commit 6ea4e6d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

plotly/offline/offline.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,9 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
251251

252252
if image:
253253
if image not in __IMAGE_FORMATS:
254-
raise ValueError(''.join(['The image parameter takes only the'
255-
'following format types: `png`, `jpeg`, `webp`,'
256-
' `svg`']
257-
))
254+
raise ValueError('The image parameter takes only the '
255+
'following format types: `png`, `jpeg`, '
256+
'`webp`, `svg`')
258257
# if the check passes then download script injection will commence.
259258
warnings.warn('For higher resolution images and more export '
260259
'options, consider making requests to the '
@@ -269,8 +268,8 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
269268
'width: width, filename: filename}});'
270269
'}};'
271270
'if(document.readyState == \'complete\') {{'
272-
'if(confirm(\'Do you want to save this image as '
273-
'{filename}.{format}?\')) {{'
271+
'if(confirm(\'Do you want to save this image as '
272+
'{filename}.{format}?\')) {{'
274273
'downloadimage(\'{format}\', {height}, {width}, '
275274
'\'{filename}\');}}'
276275
'}}'

0 commit comments

Comments
 (0)