示例#1
0
文件: cron.py 项目: bobintetley/asm3
def maint_db_dump_smcom(dbo):
    try:
        for x in dbupdate.dump_smcom(dbo):
            print(x)
    except:
        em = str(sys.exc_info()[0])
        al.error("FAIL: uncaught error running maint_db_dump_smcom: %s" % em,
                 "cron.maint_db_dump_smcom", dbo, sys.exc_info())
示例#2
0
def maint_db_dump_smcom(dbo):
    try:
        for x in dbupdate.dump_smcom(dbo):
            print(utils.cunicode(x).encode("utf-8"))
    except:
        em = str(sys.exc_info()[0])
        al.error("FAIL: uncaught error running maint_db_dump: %s" % em,
                 "cron.maint_db_dump_smcom", dbo, sys.exc_info())