From 15bf5fcb7848d5c2953923fbf7868e99424a3b1d Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 25 Aug 2013 13:48:11 +0200 Subject: [PATCH] AttackProtector: Fix Pypy compatibility. --- AttackProtector/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AttackProtector/config.py b/AttackProtector/config.py index c31261d..5c317d9 100644 --- a/AttackProtector/config.py +++ b/AttackProtector/config.py @@ -58,7 +58,11 @@ class XpY(registry.String): registry.String.setValue(self, v) else: self.error() -XpY = internationalizeDocstring(XpY) +try: + XpY = internationalizeDocstring(XpY) +except TypeError: + # Pypy + pass class Punishment(registry.String): """Value must be a valid punishment ('ban', 'kick', 'kban', 'mode+X',