AttackProtector: Fix Pypy compatibility (again).

master
Valentin Lorentz 2013-08-25 13:53:42 +02:00
parent 9dac3040b2
commit 24d0e4e184
1 changed files with 5 additions and 1 deletions

View File

@ -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: