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