codecs.lookup_error()

codecs.lookup_error(errors) → handler

Return the error handler for the specified error handling name or raise a LookupError, if no handler exists under this name.