def erract(op, lenout, action=None):
if action is None:<EOL><INDENT>action = "<STR_LIT>"<EOL><DEDENT>lenout = ctypes.c_int(lenout)<EOL>op = stypes.stringToCharP(op)<EOL>action = ctypes.create_string_buffer(str.encode(action), lenout.value)<EOL>actionptr = ctypes.c_char_p(ctypes.addressof(action))<EOL>libspice.erract_c(op, lenout, actionptr)<EOL>return stypes.toPythonString(actionptr)<EOL>
Retrieve or set the default error action.
spiceypy sets the default error action to "report" on init.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/erract_c.html

:param op: peration, "GET" or "SET".
:type op: str
:param lenout: Length of list for output.
:type lenout: int
:param action: Error response action.
:type action: str
:return: Error response action.
:rtype: str