[Tutor] Socket Error Handling Syntax

Andreas Perstinger andipersti at gmail.com
Tue May 28 22:02:53 CEST 2013


On 28.05.2013 21:37, sparkle Plenty wrote:
> If I use an if statement, I cannot use continue after I do my error
> handling, so I am really trying to use the except errorname: instead of an
> if statement.

I think you haven't understood the code snippet I've posted. The 
if-statement is inside the except clause to check the Windows error number.

> Therefore, I have to find the correct error name to identify
> the 10057 condition to the interpreter,

As Dave told you, the actual traceback will tell you the name of the 
exception.

Bye, Andreas


More information about the Tutor mailing list