mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Fix bug #1031347, Google.stats exception.
This commit is contained in:
parent
3bfb28fcee
commit
a87660ade2
@ -391,7 +391,7 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
Returns interesting information about this Google module. Mostly
|
Returns interesting information about this Google module. Mostly
|
||||||
useful for making sure you don't go over your 1000 requests/day limit.
|
useful for making sure you don't go over your 1000 requests/day limit.
|
||||||
"""
|
"""
|
||||||
recent = len(self.last24hours)
|
recent = len(last24hours)
|
||||||
time = self.registryValue('state.time')
|
time = self.registryValue('state.time')
|
||||||
searches = self.registryValue('state.searches')
|
searches = self.registryValue('state.searches')
|
||||||
irc.reply('This google module has made %s total; '
|
irc.reply('This google module has made %s total; '
|
||||||
|
@ -113,5 +113,8 @@ class GoogleTestCase(ChannelPluginTestCase, PluginDocumentation):
|
|||||||
self.assertNotRegexp('google foobar', 'faultType')
|
self.assertNotRegexp('google foobar', 'faultType')
|
||||||
self.assertNotRegexp('google foobar', 'SOAP')
|
self.assertNotRegexp('google foobar', 'SOAP')
|
||||||
|
|
||||||
|
def testStats(self):
|
||||||
|
self.assertNotError('google stats')
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
Reference in New Issue
Block a user