Can anyone please help me how to write exception for a ProxyConnectionError? I have tried following code in Django project after browsing internet
from aiohttp_socks import ProxyConnectionError
try:
return render(request,"data.html")
except ProxyConnectionError:
return HttpResponse("{Exception: check proxy settings}")