If you want each statement to be executed, you must write it the way you did. Please note that in this case try / finally may not be necessary because you are swallowing all exceptions.
However, the code looks a little strange to me. I wonder if you really need to execute each expression. Usually you write:
try statement1; statement2; statement3; except
Then, if there is an exception in statement1 , the other two lines will not be executed.
However, it would be even more common not to handle exceptions at all and to allow them to float to some higher level handler. If you make ordinary logical decisions using exceptions, this will be considered bad practice.
I think it would be useful to post the part of your code that handles exceptions and some details about what exceptions you expect. Then we could give you more specific advice.
source share