cleanup in fcc module
This commit is contained in:
@@ -12,6 +12,9 @@ def fcc(phenny, input):
|
|||||||
""".fcc <callsign> - Look up a callsign issued by the FCC."""
|
""".fcc <callsign> - Look up a callsign issued by the FCC."""
|
||||||
|
|
||||||
callsign = input.group(2)
|
callsign = input.group(2)
|
||||||
|
if not callsign:
|
||||||
|
phenny.say(".fcc <callsign> - Look up a callsign issued by the FCC.")
|
||||||
|
return
|
||||||
|
|
||||||
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)))
|
||||||
|
|||||||
Reference in New Issue
Block a user