mirror of
https://github.com/esphome/esphome.git
synced 2025-09-28 08:02:23 +01:00
Bump pylint from 2.5.3 to 2.6.0 (#1262)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
@@ -126,6 +126,7 @@ class ESPHomeLoader(yaml.SafeLoader): # pylint: disable=too-many-ancestors
|
||||
try:
|
||||
hash(key)
|
||||
except TypeError:
|
||||
# pylint: disable=raise-missing-from
|
||||
raise yaml.constructor.ConstructorError(
|
||||
f'Invalid key "{key}" (not hashable)', key_node.start_mark)
|
||||
|
||||
@@ -297,7 +298,7 @@ def _load_yaml_internal(fname):
|
||||
try:
|
||||
return loader.get_single_data() or OrderedDict()
|
||||
except yaml.YAMLError as exc:
|
||||
raise EsphomeError(exc)
|
||||
raise EsphomeError(exc) from exc
|
||||
finally:
|
||||
loader.dispose()
|
||||
|
||||
|
Reference in New Issue
Block a user