File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 33__author__ = "Jérôme Louradour"
44__credits__ = ["Jérôme Louradour" ]
55__license__ = "GPLv3"
6- __version__ = "1.15.3 "
6+ __version__ = "1.15.4 "
77
88# Set some environment variables
99import os
@@ -2946,14 +2946,14 @@ def cli():
29462946 def do_write (transcript , file , output_format ):
29472947 writer = get_writer (output_format , os .path .curdir )
29482948 try :
2949- return writer .write_result ({"segments" : transcript }, file )
2950- except TypeError :
2951- # Version > 20230314
29522949 return writer .write_result ({"segments" : list (transcript )}, file , {
29532950 "highlight_words" : False ,
29542951 "max_line_width" : None ,
29552952 "max_line_count" : None ,
29562953 })
2954+ except TypeError :
2955+ # Version <= 20230314
2956+ return writer .write_result ({"segments" : transcript }, file )
29572957 def get_do_write (output_format ):
29582958 return lambda transcript , file : do_write (transcript , file , output_format )
29592959
You can’t perform that action at this time.
0 commit comments