When using a try
/except
block, the try
block is not continued upon completion of the except
block.
A possible solution would be to replace the raise Exception()
statement - which is currently raising a meaningless exception - with a pass
statement instead.
In fact, you should probably do a little reading regarding when to use exceptions.