summaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/app.py b/app.py
index 94fdbd9..c54dec9 100644
--- a/app.py
+++ b/app.py
@@ -53,6 +53,9 @@ class ScanHandler(tornado.web.RequestHandler):
'raw': " ".join(r.groups(0))
})
+ if len(out['results']) < 1:
+ out['results'].append({'raw': 'No open ports found'})
+
self.write(out)