Merge "Handle exceptions of handle_options"

This commit is contained in:
Jenkins 2014-08-14 08:32:37 +00:00 committed by Gerrit Code Review
commit f95e697986
1 changed files with 5 additions and 2 deletions

View File

@ -1427,9 +1427,12 @@ def doctest():
CONF = cfg.CONF
print ("\nOpenStack Doc Checks (using openstack-doc-tools version %s)\n"
% os_doc_tools.__version__)
try:
handle_options()
except cfg.Error as e:
print(e)
return 1
print_gitinfo()
handle_options()
errors = 0
doc_path = get_gitroot()