on line 34 you have
You need to put the rest of the code in else part
i.e.
break
. Once you eneter the except
block you will break out of the loop. You don't need the break.You need to put the rest of the code in else part
i.e.
try: # code that may cause error except BadZipdile: # handle the bad zip file # lines 24-33 else: # code for case when no exception occur # lines 36-45
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs