mirror of
https://github.com/cwinfo/hyperboria-peers.git
synced 2024-11-09 23:40:27 +00:00
Forgot to return true
This commit is contained in:
parent
52240ec1e9
commit
e72cce3dae
4
tests.py
4
tests.py
@ -42,7 +42,9 @@ def validate(path):
|
|||||||
if field not in peers[host]:
|
if field not in peers[host]:
|
||||||
print(" %sHost %s is missing the recommended field %s%s" % (YELLOW, host,
|
print(" %sHost %s is missing the recommended field %s%s" % (YELLOW, host,
|
||||||
field, END))
|
field, END))
|
||||||
if not formatting:
|
if formatting:
|
||||||
|
return True
|
||||||
|
else:
|
||||||
return False
|
return False
|
||||||
except ValueError:
|
except ValueError:
|
||||||
print(" %sInvalid JSON!%s" % (RED, END))
|
print(" %sInvalid JSON!%s" % (RED, END))
|
||||||
|
Loading…
Reference in New Issue
Block a user