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
|
from django.core.management import execute_from_command_line
|
||||||
|
|
||||||
inp = sys.stdin.readline().strip()
|
inp = sys.stdin.readline().strip()
|
||||||
argv = ['in.whoisd', 'pdb_whois', inp]
|
if inp:
|
||||||
execute_from_command_line(argv)
|
argv = ['in.whoisd', 'pdb_whois', inp]
|
||||||
|
execute_from_command_line(argv)
|
||||||
|
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
# TODO log here - need to inherit
|
# TODO log here - need to inherit
|
||||||
|
|||||||
Reference in New Issue
Block a user