for upload in uploads: try: process(upload,method,doforcenow) except Arcgisscripting.ExecuteError: #<< Line where error is reported msgs = gp.GetMessage(0) msgs += gp.GetMessages(2) gp.AddError(msgs) logMsg("\tError: "+ msgs) errorOccurred(True) pass except: # Get the traceback object tb = sys.exc_info()[2] tbinfo = traceback.format_tb(tb)[0] pymsg = tbinfo + "\n" + str(sys.exc_type)+ ": " + str(sys.exc_value) gp.AddError(pymsg) logMsg("\tError: " +pymsg) pass
Solved! Go to Solution.