def get_errno(e):
    """
    Return the errno of an exception, or the first argument if errno is not available.

    :param e: the exception object
    """
    try:
        return e.errno
    except __HOLE__:
        return e.args[0]
dataset/ETHPy150Open jasonrbriggs/stomp.py/stomp/backward.py/get_errno