File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1010%%
1111% Copyright (c) 2010 Thomas Grenfell Smith
1212% Copyright (c) 2015 Michael Walter
13- % Copyright (c) 2015-2019, 2022-2023 Colin B. Macdonald
13+ % Copyright (c) 2015-2019, 2022-2024 Colin B. Macdonald
1414% Copyright (c) 2015 Oliver Heimlich
1515% Copyright (C) 2018 Mike Miller
1616% SPDX-License-Identifier: BSD-3-Clause
364364
365365function [docstring , error ] = extract_docstring(name )
366366 if is_octave()
367- [docstring , format ] = get_help_text(name );
367+ try
368+ [docstring , format ] = get_help_text (name );
369+ catch exc
370+ docstring = ' ' ;
371+ error = strcat (' Error extracting help text: ' , ...
372+ doctest_format_exception (exc ));
373+ return
374+ end
368375 if strcmp(format , ' texinfo' )
369376 [docstring , error ] = parse_texinfo(docstring );
370377 elseif strcmp(format , ' plain text' )
You can’t perform that action at this time.
0 commit comments