summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2014-02-14 12:49:10 +0200
committerFilipp Lepalaan <f@230.to>2014-02-14 12:49:10 +0200
commit8ffb2c2ed06c67ba062811a26c7357d49823f1db (patch)
tree16303d75a4235918ce9f3c6a71cc88a6de990b62
parent3d7b685ac9753f0304f5384120909731a8902c65 (diff)
downloadintercheck-master.tar.gz
intercheck-master.tar.bz2
intercheck-master.zip
-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)