1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-12 09:34:50 +02:00

fix timeout check showing regardless of value

This commit is contained in:
Nick Sweeting
2024-10-05 04:24:07 -07:00
parent 7a9460f45b
commit 55e286972d

View File

@@ -182,6 +182,7 @@ class ArchivingConfig(BaseConfigSet):
@field_validator('TIMEOUT', mode='after')
def validate_timeout(cls, v):
if int(v) < 5:
print(f'[red][!] Warning: TIMEOUT is set too low! (currently set to TIMEOUT={v} seconds)[/red]', file=sys.stderr)
print(' You must allow *at least* 5 seconds for indexing and archive methods to run succesfully.', file=sys.stderr)
print(' (Setting it to somewhere between 30 and 3000 seconds is recommended)', file=sys.stderr)