From 0b5398ca046395f77d93c5af72f28bfc4f36dae5 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Wed, 30 Nov 2011 16:04:38 -0500 Subject: [PATCH] fcc: show error when looking up non-existant callsign --- modules/fcc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fcc.py b/modules/fcc.py index afee613..8cd4df6 100755 --- a/modules/fcc.py +++ b/modules/fcc.py @@ -20,7 +20,7 @@ def fcc(phenny, input): return data = json.loads(req) - if len(data) <= 0: + if len(data) <= 0 or data['status'] == 'INVALID': phenny.reply('No results found for {0}'.format(callsign)) return