mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-08 22:07:55 +00:00
py-i2phosts-injector: add extra newline for error message
This improves output readability significantly.
This commit is contained in:
parent
5803016ec3
commit
584d113a06
@ -46,7 +46,7 @@ for line in f:
|
|||||||
hostname = validate_hostname(entry[0])
|
hostname = validate_hostname(entry[0])
|
||||||
base64 = validate_b64hash(entry[1], check_uniq=False) # don't require uniqueness
|
base64 = validate_b64hash(entry[1], check_uniq=False) # don't require uniqueness
|
||||||
except ValidationError, e:
|
except ValidationError, e:
|
||||||
sys.stderr.write('validation error: %s: %s\n' % (e, line))
|
sys.stderr.write('validation error: %s: %s\n\n' % (e, line))
|
||||||
else:
|
else:
|
||||||
# Check for already existed hosts in database to avoid unneeded INSERTs
|
# Check for already existed hosts in database to avoid unneeded INSERTs
|
||||||
# beacuse they will fail anyway.
|
# beacuse they will fail anyway.
|
||||||
|
Loading…
Reference in New Issue
Block a user