5
0
mirror of https://github.com/cwinfo/hyperboria-peers.git synced 2024-09-19 16:09:35 +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]:
print(" %sHost %s is missing the recommended field %s%s" % (YELLOW, host,
field, END))
if not formatting:
if formatting:
return True
else:
return False
except ValueError:
print(" %sInvalid JSON!%s" % (RED, END))