Make the upper level routines of the applications more robust against low level errors. The application must not crash in these cases. The application should act in an appropriate way to the errors.
When the DSL line is disconnected, a requests.exceptions.ConnectionError is raised. ("Max retries exceeded with url: ... Network is unreachable")
When the server returns faulty XML a lxml.etree.XMLSyntaxError is raised.
Make the upper level routines of the applications more robust against low level errors. The application must not crash in these cases. The application should act in an appropriate way to the errors.
requests.exceptions.ConnectionError
is raised. ("Max retries exceeded with url: ... Network is unreachable")lxml.etree.XMLSyntaxError
is raised.