[Tutor] try except continue

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Thu Jul 28 19:51:58 CEST 2005

On Thu, 28 Jul 2005 tpc at csua.berkeley.edu wrote:

>         import testTryCatch
>         try:
> 		testTryCatch.someProcedure()
>         except:
>                 print "encountered error"
> 		continue
> but I get the following error:
> SyntaxError: 'continue' not properly in loop
> What am I doing wrong ?

Hi Tpc,

What did you expect to happen when we hit the continue statement?  It'll
help to know what you wanted to happen, so that we can better understand
the problem.

According to:


'continue' is only effective if we're in a loop, so the error message is
perfectly true.  So I think we need to know more about what you are trying
to do.

Best of wishes!

More information about the Tutor mailing list