-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2666 from cta-observatory/fix/unknown_config_type
Fixed unknown configs being silently ignored
- Loading branch information
Showing
3 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Fixed a bug where if a configuration file with unknown file extension was passed | ||
to a tool, e.g. ``--config myconf.conf`` instead of ``--config myconf.yaml``, it | ||
was silently ignored, despite an info log saying "Loading config file | ||
myconf.conf". Configuration files must now have one of the following extensions | ||
to be recognized: yml, yaml, toml, json, py. If not a ``ToolConfigurationError`` | ||
is raised. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters