mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 07:43:55 +02:00
Ruff fix after merge (#149)
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user