Example #1
0
try:
    # Update funds information
    po.UpdateFunds()
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 " +