From c2466f5018a4c45a739b0e90bc8fcef8fa7ad13d Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 20 Feb 2014 16:13:31 +0100 Subject: [PATCH] Do not name the exception pyflakes was complaining about a unused variable --- weboob/tools/capabilities/paste.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/tools/capabilities/paste.py b/weboob/tools/capabilities/paste.py index f147a33b..da6254da 100644 --- a/weboob/tools/capabilities/paste.py +++ b/weboob/tools/capabilities/paste.py @@ -53,7 +53,7 @@ class BasePasteBackend(ICapPaste): def image_mime(data_base64, supported_formats=('gif', 'jpeg', 'png')): try: beginning = data_base64[:24].decode('base64') - except binascii.Error, e: + except binascii.Error: return None if 'gif' in supported_formats and 'GIF8' in beginning: