mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-03-09 20:01:18 +00:00
pyi2phosts/lib/validation.py: update error message
This commit is contained in:
parent
483d14987d
commit
6fce92307a
@ -108,7 +108,7 @@ def validate_b64hash(data, check_uniq=True):
|
||||
# Avoid adding non-unique hashes
|
||||
qs = i2phost.objects.filter(b64hash=data)
|
||||
if qs.exists():
|
||||
raise ValidationError(_('Base64 hash must be unique'))
|
||||
raise ValidationError(_('Some host already have the same Base64 hash'))
|
||||
return data
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user