Bump flake8 version and handle new lint errors (#1385)

This commit is contained in:
Chris Tomlinson 2017-12-08 21:02:34 +00:00 committed by Terry Cain
commit 279efc6b12
5 changed files with 11 additions and 11 deletions

View file

@ -265,14 +265,14 @@ class LambdaFunction(BaseModel):
def convert(s):
try:
return str(s, encoding='utf-8')
except:
except Exception:
return s
@staticmethod
def is_json(test_str):
try:
response = json.loads(test_str)
except:
except Exception:
response = test_str
return response

View file

@ -4,7 +4,7 @@ import json
try:
from urllib import unquote
except:
except ImportError:
from urllib.parse import unquote
from moto.core.utils import amz_crc32, amzn_request_id