remove execute permissions from modules (unneeded)
parent
69490dc2f1
commit
f236a203df
|
@ -15,11 +15,11 @@ def fcc(phenny, input):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
req = web.get("http://callook.info/{0}/json".format(web.quote(callsign)))
|
req = web.get("http://callook.info/{0}/json".format(web.quote(callsign)))
|
||||||
except (HTTPError, IOError):
|
data = json.loads(req)
|
||||||
|
except (HTTPError, IOError, ValueError):
|
||||||
phenny.say("THE INTERNET IS FUCKING BROKEN. Please try again later.")
|
phenny.say("THE INTERNET IS FUCKING BROKEN. Please try again later.")
|
||||||
return
|
return
|
||||||
|
|
||||||
data = json.loads(req)
|
|
||||||
if len(data) <= 0 or data['status'] == 'INVALID':
|
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