Skip to content

Commit d5e3e41

Browse files
authored
Merge pull request #2528 from sebix/fix-shadowserver-valueerror-syntax
Fix shadowserver valueerror syntax
2 parents 2f293a1 + a6ba4ed commit d5e3e41

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#### Collectors
2222

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

2527
#### Experts
2628

docs/user/bots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2202,7 +2202,7 @@ For example using `curl -s https://interchange.shadowserver.org/intelmq/v1/schem
22022202

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

2205-
** `auto_update`**
2205+
**`auto_update`**
22062206

22072207
(optional, boolean) Enable automatic schema download.
22082208

intelmq/bots/parsers/shadowserver/_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def reload():
341341
return
342342
else:
343343
if not __config.test_mode:
344-
raise ValueError("The schema file does not exist: %r.", __config.schema_file)
344+
raise ValueError(f"The schema file does not exist: {__config.schema_file}.")
345345

346346
__config.feedname_mapping.clear()
347347
__config.filename_mapping.clear()

0 commit comments

Comments
 (0)