Ruff fix after merge (#149)

This commit is contained in:
2023-09-24 18:38:05 +02:00
committed by GitHub
parent 091e67de79
commit 5bbdf046d2

View File

@ -73,7 +73,7 @@ class JsonFileConfigProvider(ConfigProvider):
""" """
if not os.path.isfile(file_path): if not os.path.isfile(file_path):
raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), file_path) raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), file_path)
with open(file_path, mode="r") as file: with open(file_path) as file:
try: try:
data = json.loads(file.read()) data = json.loads(file.read())
self.__data__ = data self.__data__ = data