AttackProtector: Fix Pypy compatibility (again).
parent
9dac3040b2
commit
24d0e4e184
|
@ -83,7 +83,11 @@ class Punishment(registry.String):
|
||||||
self.error()
|
self.error()
|
||||||
return
|
return
|
||||||
self.setValue(s)
|
self.setValue(s)
|
||||||
Punishment = internationalizeDocstring(Punishment)
|
try:
|
||||||
|
Punishment = internationalizeDocstring(Punishment)
|
||||||
|
except TypeError:
|
||||||
|
# Pypy
|
||||||
|
pass
|
||||||
|
|
||||||
AttackProtector = conf.registerPlugin('AttackProtector')
|
AttackProtector = conf.registerPlugin('AttackProtector')
|
||||||
# This is where your configuration variables (if any) should go. For example:
|
# This is where your configuration variables (if any) should go. For example:
|
||||||
|
|
Loading…
Reference in New Issue