def maint_db_dump_smcom(dbo): try: for x in dbupdate.dump_smcom(dbo): print unicode(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())
def maint_db_dump_smcom(dbo): try: print unicode(dbupdate.dump_smcom(dbo)).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())
def maint_db_dump_smcom(dbo): try: print dbupdate.dump_smcom(dbo) 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())