mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
galaxy updates
better error reporting on fetching errors use scm if it exists over src unified functions in requirements simplified logic added verbose to tests cleanup code refs, unused options and dead code moved get_opt to base class fixes #11920 fixes #12612 fixes #10454
This commit is contained in:
@@ -63,6 +63,7 @@ def get_docstring(filename, verbose=False):
|
||||
theid = t.id
|
||||
except AttributeError as e:
|
||||
# skip errors can happen when trying to use the normal code
|
||||
display.warning("Failed to assign id for %t on %s, skipping" % (t, filename))
|
||||
continue
|
||||
|
||||
if 'DOCUMENTATION' in theid:
|
||||
@@ -119,6 +120,7 @@ def get_docstring(filename, verbose=False):
|
||||
except:
|
||||
display.error("unable to parse %s" % filename)
|
||||
if verbose == True:
|
||||
display.display("unable to parse %s" % filename)
|
||||
raise
|
||||
return doc, plainexamples, returndocs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user