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())
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())