fcc: show error when looking up non-existant callsign

master
mutantmonkey 2011-11-30 16:04:38 -05:00
parent 01bcae7a03
commit 0b5398ca04
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def fcc(phenny, input):
return return
data = json.loads(req) 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)) phenny.reply('No results found for {0}'.format(callsign))
return return