silent exceptions are bad : what should we do here ?

This commit is contained in:
Jean-Philippe Caruana
2013-02-07 19:09:57 +01:00
parent 051c31d126
commit edd762af5b
+2 -1
View File
@@ -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...