5
0
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:
Finn 2016-03-13 10:51:08 -07:00
parent 52240ec1e9
commit e72cce3dae

View File

@ -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))