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))
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: ssage = "Exception: %s, locals: %s" %(e, locals()) syslog( "Ouch, caught exc: %s" %exceptionmessage)
mres = mfromquery.check()
except Exception as e:
e = sys.exc_info()
exceptionme
syslog.
return(( 'dunno', exceptionmessage, instance_dict, None))