mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-22 11:51:52 +00:00
Merge pull request #541 from Riverside-Healthcare/dev
This commit is contained in:
commit
74c37bc449
1 changed files with 8 additions and 5 deletions
|
|
@ -107,9 +107,12 @@ def load_project_settings(src: Path, config: Optional[str]) -> Dict:
|
|||
)
|
||||
|
||||
# pylint: disable=broad-except
|
||||
except BaseException:
|
||||
logger.info(
|
||||
"Failed to load config file. Ensure file exists and is in json format."
|
||||
except BaseException as error:
|
||||
logger.error(
|
||||
"%sFailed to load config file %s. %s",
|
||||
Fore.RED,
|
||||
Path(config).resolve(),
|
||||
error,
|
||||
)
|
||||
|
||||
pyproject_file = find_pyproject(src)
|
||||
|
|
@ -130,8 +133,8 @@ def load_project_settings(src: Path, config: Optional[str]) -> Dict:
|
|||
**json.loads(djlintrc_file.read_text(encoding="utf8")),
|
||||
}
|
||||
# pylint: disable=broad-except
|
||||
except BaseException:
|
||||
logger.info("Failed to load .djlintrc file.")
|
||||
except BaseException as error:
|
||||
logger.error("%sFailed to load .djlintrc file. %s", Fore.RED, error)
|
||||
|
||||
return djlint_content
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue