You shouldn't ever have empty excepts.  This will catch *all* exceptions, including KeyboardInterrupt, etc.  You should target the except block *only* with the expected exception.  Here this is presumably ValueError.  There are a lot of instances of this behavior in this PR that you should clean up.