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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user