hi thanks! i used your method to rearrange the try,except clauses, and the problem is solved. I also redefined my funcs to get rid of the try/except clauses and leave it to the caller to do the job of try/except.