From edd762af5b33619acf69090d3489cc95e76f0350 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Caruana Date: Thu, 7 Feb 2013 19:09:57 +0100 Subject: [PATCH] silent exceptions are bad : what should we do here ? --- modoboa/extensions/webmail/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modoboa/extensions/webmail/__init__.py b/modoboa/extensions/webmail/__init__.py index d6efada12..efaac81b6 100644 --- a/modoboa/extensions/webmail/__init__.py +++ b/modoboa/extensions/webmail/__init__.py @@ -98,7 +98,8 @@ def userlogout(request): try: m = IMAPconnector(user=request.user.username, password=request.session["password"]) - except Exception, e: + except Exception: + # TODO silent exception are bad : we should at least log it return # The following statement may fail under Python 2.6...