1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

in.whoisd: ignore empty queries

This commit is contained in:
Chris Caputo
2018-12-07 13:49:50 -08:00
parent 4d764cd5b3
commit d8dde7aa0f

View File

@@ -14,8 +14,9 @@ try:
from django.core.management import execute_from_command_line
inp = sys.stdin.readline().strip()
argv = ['in.whoisd', 'pdb_whois', inp]
execute_from_command_line(argv)
if inp:
argv = ['in.whoisd', 'pdb_whois', inp]
execute_from_command_line(argv)
except BaseException as e:
# TODO log here - need to inherit