Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhandled exception in client.py _SendPacket() #172

Open
tedstockwell opened this issue Jul 22, 2022 · 0 comments
Open

unhandled exception in client.py _SendPacket() #172

tedstockwell opened this issue Jul 22, 2022 · 0 comments

Comments

@tedstockwell
Copy link

with pyrad 2.4, python 3.7, I've hit an exception from client.py _SendPacket().
If there's no route to the server (default route was not yet installed), socket.sendto() can raise an exception.
_SendPacket() does not catch handle this.

I don't know if it should retry until timeout in this case or just be documented to call attention that exceptions like this are possible, in addition to Timeout.

    reply = self.srv.SendPacket(req)
  File "/home/admin/.local/lib/python3.7/site-packages/pyrad/client.py", line 194, in SendPacket
    reply = self._SendPacket(pkt, self.authport)
  File "/home/admin/.local/lib/python3.7/site-packages/pyrad/client.py", line 153, in _SendPacket
    self._socket.sendto(pkt.RequestPacket(), (self.server, port))
OSError: [Errno 101] Network is unreachable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant