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

Reply via email to