Thank you Cameron. I think the problem with my code is that it just hangs without raising any exceptions. And as mentioned by Laura above that when I press CTRL+C, it just catches that exception and prints ConnectionError which is definitely a lie in this case as you mentioned. As my code doesnt raise any exception by itself, instead just hangs, I wont be able to characterize the exceptions and handle them individually. -- https://mail.python.org/mailman/listinfo/python-list
- ConnectionError handling problem shiva upreti
- Re: ConnectionError handling problem Mark Lawrence
- Re: ConnectionError handling problem Laura Creighton
- Re: ConnectionError handling problem shiva upreti
- Re: ConnectionError handling problem Laura Creighton
- Re: ConnectionError handling problem Cameron Simpson
- Re: ConnectionError handling problem shiva upreti
- Re: ConnectionError handling problem Cameron Simpson
- Re: ConnectionError handling problem shiva upreti
- Re: ConnectionError handling pro... Cameron Simpson
- Re: ConnectionError handling... Gonzalo V
- Re: ConnectionError handling... Cameron Simpson
- Re: ConnectionError handling pro... shiva upreti
- Re: ConnectionError handling... Cameron Simpson
- Re: ConnectionError handling... Laura Creighton
- Re: ConnectionError handling... Cameron Simpson
- Re: ConnectionError handling problem shiva upreti