Commits

Jason R. Coombs committed d5ac273

Fix issue in client usage

Comments (0)

Files changed (1)

pmxbot_wolframalpha/__init__.py

 def wa(client, event, channel, nick, rest):
 	client = wolframalpha.Client('Q59EW4-UEL27J79UK')
 	res = client.query(rest)
-	return res.results[0].text
+	return next(res.results).text