except: error.append('Problems with updating funds.') try: # Update deals information po.UpdateDeals() except: error.append('Problems with updating deals.') try: # Update fund names table information po.UpdateFundDealNames() except: error.append('Problems with updating fund names.') #try: # #po.UpdateBalanceHistory() #except: # error.append('Problems with updating balance history.') po.UpdateSysInfo() if len(error): errors = "\n".join(error) now = datetime.datetime.now() mail( "*****@*****.**", "[Web Updater] Error running update on " + now.strftime("%Y-%m-%d %H:%M"), "The web updater script failed to run successfully. The following problems occured:\n\n" + errors)