Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion safety/auth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ def save_flags_config(flags: Dict[FeatureType, bool]) -> None:
with open(CONFIG_FILE_USER, "w") as config_file:
config.write(config_file)
except Exception:
LOG.exception("Unable to save flags configuration.")
LOG.exception(
"Unable to save feature flags configuration to %s. "
"The application will continue using existing configuration "
"or default flag values until the next restart.",
CONFIG_FILE_USER,
)


def get_feature_name(feature: FeatureType, as_attr: bool = False) -> str:
Expand Down