We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe34b4 commit 2b21e42Copy full SHA for 2b21e42
infrahub_sdk/utils.py
@@ -358,7 +358,9 @@ def read_file(file_path: Path) -> str:
358
with Path.open(file_path, encoding="utf-8") as fobj:
359
return fobj.read()
360
except UnicodeDecodeError as exc:
361
- raise FileNotValidError(name=str(file_path.name), message=f"Unable to read {file_path.name} with utf-8 encoding") from exc
+ raise FileNotValidError(
362
+ name=str(file_path.name), message=f"Unable to read {file_path.name} with utf-8 encoding"
363
+ ) from exc
364
365
366
def get_user_permissions(data: list[dict]) -> dict:
0 commit comments