Skip to content

Missing error or warning when config file path is incorrect #1556

@RonShakutai

Description

@RonShakutai

Describe the bug
When the path to the config file is incorrect, Presidio silently falls back to the default settings without logging any error or warning. This makes it hard to debug and identify the issue.

To Reproduce
Steps to reproduce the behavior:

  1. Set the conf_file path to a non-existent or incorrect file path.
  2. Initialize the NlpEngineProvider with the incorrect config file path.
  3. Run an analysis using AnalyzerEngine.
  4. No error is logged — it defaults to the built-in settings silently.

Expected behavior
Presidio should raise an error or at least log a warning when the config file is missing or invalid.

Screenshots
Image

docs link https://microsoft.github.io/presidio/analyzer/nlp_engines/transformers/

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions