Re: How to raise a socket "104 connection reset by peer error"

2013-05-21 Thread Andrew Berg
On 2013.05.21 10:26, loial wrote: > For testing purposes I want my code to raise a socket "connection reset by > peer" error, so that I can test how I handle it, but I am not sure how to > raise the error. Arbitrary exceptions can be raised with the raise keyword. In Python 3.3, that exact error

How to raise a socket "104 connection reset by peer error"

2013-05-21 Thread loial
For testing purposes I want my code to raise a socket "connection reset by peer" error, so that I can test how I handle it, but I am not sure how to raise the error. Any advice appreciated -- http://mail.python.org/mailman/listinfo/python-list