Merge pull request #541 from Riverside-Healthcare/dev

This commit is contained in:
sur.la.route 2023-02-07 13:40:07 -06:00 committed by GitHub
commit 74c37bc449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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