alex23 wrote:
On May 22, 9:13 am, Karlo Lozovina <[EMAIL PROTECTED]> wrote:
In case it's not clear what I meant: after executing some_function()
exception SomeExcpetion gets risen. Then, in except block I do something
to fix whatever is causing the exception and then I would like to go back
to try block, and execute some_function() again. Is that doable?

If you know what exception to expect, and you know how to "fix" the
cause, why not just put tests _before_ some_function() is called to
ensure that everything is as it needs to be?
--
http://mail.python.org/mailman/listinfo/python-list
There are cases where this could be helpful
FTP upload that would sometimes get cut off along the way. So you might want to just try again depending on why the failure happened perhaps.

Command of "ReTry" sounds good to me ;->
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to