NameError: name 'strict' is not defined
I've upgrade to version 2.0.2 and am getting the following error occassionally: "NameError: name 'strict' is not defined"
Oct 5 10:38:48 mokaru policyd-spf[382]: Traceback (most recent call last):
Oct 5 10:38:48 mokaru policyd-spf[382]: File "/usr/bin/
Oct 5 10:38:48 mokaru policyd-spf[382]: instance_dict, configData, peruser, peruserconfigData)
Oct 5 10:38:48 mokaru policyd-spf[382]: File "/usr/bin/
Oct 5 10:38:48 mokaru policyd-spf[382]: mres = mfromquery.check()
Oct 5 10:38:48 mokaru policyd-spf[382]: File "/usr/lib/
Oct 5 10:38:48 mokaru policyd-spf[382]: spf = self.dns_
Oct 5 10:38:48 mokaru policyd-spf[382]: File "/usr/lib/
Oct 5 10:38:48 mokaru policyd-spf[382]: a = [t for t in self.dns_
Oct 5 10:38:48 mokaru policyd-spf[382]: File "/usr/lib/
Oct 5 10:38:48 mokaru policyd-spf[382]: dns_list = self.dns(
Oct 5 10:38:48 mokaru policyd-spf[382]: File "/usr/lib/
Oct 5 10:38:48 mokaru policyd-spf[382]: for k, v in DNSLookup(name, qtype, self.strict, timeout):
Oct 5 10:38:48 mokaru policyd-spf[382]: File "/usr/lib/
Oct 5 10:38:48 mokaru policyd-spf[382]: if strict > 1:
Oct 5 10:38:48 mokaru policyd-spf[382]: NameError: name 'strict' is not defined
Is this due to misconfiguration? or is there really a bug in pyspf?
I built with the following packages installed:
ipaddr 2.2.0
py3dns 3.2.1
pyspf 2.0.13
Or improvements from line 622:
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Scott Kitterman
- Solved:
- Last query:
- Last reply: