I want to get the ErrorCode from a pyads_ex.ADSError and i can\'t figure out how to do that.
My current approach with pyADS is the following: