Do not name the exception
pyflakes was complaining about a unused variable
This commit is contained in:
parent
1ea36a7c82
commit
c2466f5018
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class BasePasteBackend(ICapPaste):
|
||||||
def image_mime(data_base64, supported_formats=('gif', 'jpeg', 'png')):
|
def image_mime(data_base64, supported_formats=('gif', 'jpeg', 'png')):
|
||||||
try:
|
try:
|
||||||
beginning = data_base64[:24].decode('base64')
|
beginning = data_base64[:24].decode('base64')
|
||||||
except binascii.Error, e:
|
except binascii.Error:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if 'gif' in supported_formats and 'GIF8' in beginning:
|
if 'gif' in supported_formats and 'GIF8' in beginning:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue