Warning: This document is for an old version of Pydra: A simple dataflow engine with scalable semantics. The main version is master.

pydra.utils.misc module

pydra.utils.misc.add_exc_note(e: Exception, note: str) Exception

Adds a note to an exception in a Python <3.11 compatible way

Parameters:
  • e (Exception) – the exception to add the note to

  • note (str) – the note to add

Returns:

returns the exception again

Return type:

Exception

pydra.utils.misc.exc_info_matches(exc_info, match, regex=False)