Warning: This document is for the development 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