Bump pylint from 2.5.3 to 2.6.0 (#1962)

* Bump pylint from 2.5.3 to 2.6.0

Bumps [pylint](https://github.com/PyCQA/pylint) from 2.5.3 to 2.6.0.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog)
- [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.5.3...pylint-2.6.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Address lint issues

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
dependabot[bot]
2020-08-24 10:16:50 +02:00
committed by GitHub
parent cd31fad56d
commit 979586cdb2
31 changed files with 190 additions and 189 deletions

View File

@@ -48,8 +48,8 @@ def json_loads(data: Any) -> Dict[str, Any]:
return {}
try:
return json.loads(data)
except json.JSONDecodeError:
raise APIError("Invalid json")
except json.JSONDecodeError as err:
raise APIError("Invalid json") from err
def api_process(method):
@@ -120,7 +120,7 @@ async def api_validate(
try:
data_validated = schema(data)
except vol.Invalid as ex:
raise APIError(humanize_error(data, ex))
raise APIError(humanize_error(data, ex)) from None
if not origin:
return data_validated