I am calling a Python procedure, which fails due to my misspecification of the parameters:
Code:
........about two screens of traceback......
Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
r(7102);
If I apply capture command to this call, I get the error code
7102 returned. The interpretation of which according to the
Stata-python reference is "
7102 error occurs when executing Python in the interactive environment". I'd like to obtain the internal error, which is
11001, reported, but doesn't seem to be accessible. This will help to correctly report which parameter in the call was misspecified (in this case, the website address, to which the connection could not be established).
Is there any chance I can access the internal python-specific error code (that 11001), perhaps, in some system variable?
Thank you, Sergiy Radyakin
0 Response to Python internal error code
Post a Comment