origen.helpers¶
Submodules¶
Functions¶
continue_on_exception(): Decorator to run a given function but catch any exceptions, output them to the logger, but continue onward.has_method(): Undocumented.mod_from_file(): Undocumented.try_method(): Undocumented.
-
origen.helpers.continue_on_exception(logger=None, *, method='error')¶ Decorator to run a given function but catch any exceptions, output them to the logger, but continue onward. This should not be used in place of a ``finally`` block. This is only a helper for methods which may fail but which we don’t want to entirely stop execution.
Use sphinx-arg
-Wto turn these back into errorsThis will let system errors or process-killing exception (such as
SystemExit) through:See also
Examples * :func:origen.web.clean
-
origen.helpers.has_method(obj, m)¶
-
origen.helpers.mod_from_file(path, name=None)¶
-
origen.helpers.try_method(obj, m, args)¶