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

🐛 OSError: [Errno 113] No route to host #5

Open
angelside opened this issue Aug 21, 2022 · 0 comments
Open

🐛 OSError: [Errno 113] No route to host #5

angelside opened this issue Aug 21, 2022 · 0 comments

Comments

@angelside
Copy link
Owner

angelside commented Aug 21, 2022

I think we need one more exception for OSError. It's like we can replace TimeoutError with OSError.

It gives this error when the IP address is inaccessible (device is offline).

Traceback (most recent call last):
  File "/home/angelside/code/python/zebra-password-changer-multi-cli-py/main.py", line 102, in <module>
    main()
  File "/home/angelside/code/python/zebra-password-changer-multi-cli-py/main.py", line 89, in main
    socket_request(ip_address)
  File "/home/angelside/code/python/zebra-password-changer-multi-cli-py/main.py", line 55, in socket_request
    sock.connect((ip_address, config['printer']['port']))
OSError: [Errno 113] No route to host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant