@@ -757,10 +757,12 @@ def get_chrome() -> None:
757757"""
758758
759759 if not kaleido_available () or kaleido_major () < 1 :
760- raise ValueError ("""
760+ raise ValueError (
761+ """
761762This command requires Kaleido v1.0.0 or greater.
762763Install it using `pip install 'kaleido>=1.0.0'` or `pip install 'plotly[kaleido]'`."
763- """ )
764+ """
765+ )
764766
765767 # Handle command line arguments
766768 import sys
@@ -792,28 +794,34 @@ def get_chrome() -> None:
792794 # located at chrome_install_path; otherwise fail
793795 if user_specified_path :
794796 if not chrome_install_path .exists ():
795- raise ValueError (f"""
797+ raise ValueError (
798+ f"""
796799The specified install path '{ chrome_install_path } ' does not exist.
797800Please specify a path to an existing directory using the --path argument,
798801or omit the --path argument to use the default download path.
799- """ )
802+ """
803+ )
800804 # Make sure the path is a directory
801805 if not chrome_install_path .is_dir ():
802- raise ValueError (f"""
806+ raise ValueError (
807+ f"""
803808The specified install path '{ chrome_install_path } ' already exists but is not a directory.
804809Please specify a path to an existing directory using the --path argument,
805810or omit the --path argument to use the default download path.
806- """ )
811+ """
812+ )
807813
808814 # If any arguments remain, command syntax was incorrect -- print usage and exit
809815 if len (cli_args ) > 1 :
810816 print (usage )
811817 sys .exit (1 )
812818
813819 if not cli_yes :
814- print (f"""
820+ print (
821+ f"""
815822Plotly will install a copy of Google Chrome to be used for generating static images of plots.
816- Chrome will be installed at: { chrome_install_path } """ )
823+ Chrome will be installed at: { chrome_install_path } """
824+ )
817825 response = input ("Do you want to proceed? [y/n] " )
818826 if not response or response [0 ].lower () != "y" :
819827 print ("Cancelled" )
0 commit comments