def _try_call(func, extra_exceptions=(), return_exceptions=False):
try:<EOL><INDENT>return func()<EOL><DEDENT>except HANDLED_EXCEPTIONS as e:<EOL><INDENT>if return_exceptions:<EOL><INDENT>return e<EOL><DEDENT>else:<EOL><INDENT>return _format_exception(e)<EOL><DEDENT><DEDENT>except extra_exceptions as e:<EOL><INDENT>if return_exceptions:<EOL><INDENT>return e<EOL><DEDENT>else:<EOL><INDENT>return _format_exception(e)<EOL><DEDENT><DEDENT>
Call a method, but
:param func:
:type func:
:param extra_exceptions:
:type extra_exceptions:
:return:
:rtype: