aboutsummaryrefslogtreecommitdiff
path: root/asn.py
diff options
context:
space:
mode:
Diffstat (limited to 'asn.py')
-rwxr-xr-xasn.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/asn.py b/asn.py
index 42865c5..8174a3c 100755
--- a/asn.py
+++ b/asn.py
@@ -44,10 +44,10 @@ class Listener:
log.info(f'{addr[0]} {recv_data}')
resp = self._get_announcements(recv_data)
- if not resp:
- resp = 'no valid hostname or IP discovered'
- else:
+ if resp:
resp = self._pretty(resp)
+ else:
+ resp = ''
finally:
conn.sendall(bytes(resp, 'utf-8'))
conn.shutdown(socket.SHUT_RDWR)