Skip to content

Commit d435ea3

Browse files
committed
Added exception for missing schema and added intelmq user to the crontab suggestion.
1 parent a0b34cb commit d435ea3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/user/bots.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ The report configuration is stored in a `shadowserver-schema.json` file download
16221622

16231623
The parser will attempt to download a schema update on startup when the *auto_update* option is enabled.
16241624

1625-
Schema downloads can also be scheduled as a cron job:
1625+
Schema downloads can also be scheduled as a cron job for the `intelmq` user:
16261626

16271627
.. code-block:: bash
16281628

intelmq/bots/parsers/shadowserver/_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def reload():
318318
if __config.schema_mtime == mtime:
319319
return
320320
else:
321-
__config.logger.info("The schema file does not exist.")
321+
raise ValueError("The schema file does not exist.")
322322

323323
if __config.schema_mtime == 0.0 and mtime == 0.0 and __config.auto_update:
324324
update_schema()

0 commit comments

Comments
 (0)