From 8ffb2c2ed06c67ba062811a26c7357d49823f1db Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 14 Feb 2014 12:49:10 +0200 Subject: Blah --- app.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3