Comment 3 for bug 1842005

Revision history for this message
Adi Pircalabu (apircalabu) wrote :

Scott, I think there are 2 issues here:
1. The bug in pyspf, that causes the policyd-spf crash
2. The fact that policyd-spf crashes on an invalid record. Wouldn't a try/except block be a better approach? Something like:

try:
    mres = mfromquery.check()
except Exception as e:
    e = sys.exc_info()
    exceptionmessage = "Exception: %s, locals: %s" %(e, locals())
    syslog.syslog("Ouch, caught exc: %s" %exceptionmessage)
    return(( 'dunno', exceptionmessage, instance_dict, None))