pydra.utils.misc module

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

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