I've a question about try-exception statements. It's NOT the same as the other question mentioned. As I do not need a finally statement...
I have for example the following code:
try:
#dosomething
except TypeError:
#dosomething -> THIS GIVES A TypeError!
"..."
#I_want_this_to_be_executed_if_the_previous_commands_are_not_working
What can I fill in between the quotation marks to make sure this last command will be executed if the except TypeError
doesn't work either? (it gives also an TypeError)
I do NOT need a finally statement as it is NOT necessary to be executed ALWAYS, only in case the exception also gives a TypeError...