Skip to content

Commit

Permalink
shadowserver parser: fix error message formatting
Browse files Browse the repository at this point in the history
if schema file is absent
  • Loading branch information
sebix committed Sep 16, 2024
1 parent 5713783 commit a6ba4ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#### Collectors

#### Parsers
- `intelmq.bots.parsers.shadowserver._config`:
- fix error message formatting if schema file is absent (PR#2528 by Sebastian Wagner).

#### Experts

Expand Down
2 changes: 1 addition & 1 deletion intelmq/bots/parsers/shadowserver/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def reload():
return
else:
if not __config.test_mode:
raise ValueError("The schema file does not exist: %r.", __config.schema_file)
raise ValueError(f"The schema file does not exist: {__config.schema_file}.")

__config.feedname_mapping.clear()
__config.filename_mapping.clear()
Expand Down

0 comments on commit a6ba4ed

Please sign in to comment.