From bc19a9fc7f218986d3d24fc5ecad7fe1324205c1 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 30 Nov 2015 07:45:05 +0000 Subject: [PATCH] Web: fix syntax. --- plugins/Web/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 8d363b8a1..190af6c57 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -102,7 +102,7 @@ def fetch_sandbox(f): replies = commands.process(process, self, irc, *args, timeout=10, heap_size=10*1024*1024, pn=self.name(), cn=f.__name__) - except commands.ProcessTimeoutError, MemoryError: + except (commands.ProcessTimeoutError, MemoryError): raise utils.web.Error(_('Page is too big or the server took ' 'too much time to answer the request.')) else: