Nov-02-2020, 03:56 AM
In my original post (and the one the flows) I have a problem with the print statement in TRY/EXCEPT block.
I cannot execute multiple prints,
I'd like to print all my prints. I found I can add more TRY/EXCEPT with one print statement.
I just do not want to have 10 it 15 of them in the script.
So. How I can get multiple print statements in one try/except block?
Sorry for the confusion!
And thank you!
I cannot execute multiple prints,
try : print ("-- Count of 'Error - 0' Errors -- "+ str(cnttt)+" --->>> "+lstt0[-1]+"\n") print ("-- Count of 'Error - 1' Errors -- "+ str(cntt1)+" --->>> "+lstt1[-1]+"\n") except Exception as ex: print(ex)Only one print executed.
I'd like to print all my prints. I found I can add more TRY/EXCEPT with one print statement.
I just do not want to have 10 it 15 of them in the script.
So. How I can get multiple print statements in one try/except block?
Sorry for the confusion!
And thank you!