Skip to content

Commit

Permalink
Merge pull request #2528 from sebix/fix-shadowserver-valueerror-syntax
Browse files Browse the repository at this point in the history
Fix shadowserver valueerror syntax
  • Loading branch information
sebix authored Sep 16, 2024
2 parents 2f293a1 + a6ba4ed commit d5e3e41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
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 docs/user/bots.md
Original file line number Diff line number Diff line change
Expand Up @@ -2202,7 +2202,7 @@ For example using `curl -s https://interchange.shadowserver.org/intelmq/v1/schem

(optional, boolean) If an existing `feed.name` should be overwritten.

** `auto_update`**
**`auto_update`**

(optional, boolean) Enable automatic schema download.

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 d5e3e41

Please sign in to comment.