Bump flake8 version and handle new lint errors (#1385)
This commit is contained in:
parent
499857e67f
commit
279efc6b12
5 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue