fcc: show error when looking up non-existant callsign
parent
01bcae7a03
commit
0b5398ca04
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue