def get_errno(e):
    try:
        return e.errno
    except AttributeError:
        return e.args[0]
Return the errno of an exception, or the first argument if errno is not available.
dataset/ETHPy150Open jasonrbriggs/stomp.py/stomp/backward.py/get_errno