Frage

I need the SSLError utility function but ...

from requests.exceptions import SSLError

and I get ImportError: cannot import name SSLError :(

PS: I have installed python-requests in Ubuntu using the python-requests package

War es hilfreich?

Lösung

Your requests library version is too old. The SSLError exception was not added to requests.exceptions until version 0.8.8, in revision 9a1a413.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top