In many places in the code there Try - Except clauses that use an unspecified Exception. This excepts any error and can cause unexpected results. Bugs can go unnoticed.
It is best practice to only handle errors that you specify in the code. If an unexpected error pops up to the code should fail instead of pass.