From 663a9f75ae18657fe9e351e1bd3897cf52bfab0f Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 2 Jun 2003 05:48:57 +0000 Subject: [PATCH] Failed regexp now handled in googlegroups. --- plugins/Google.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/Google.py b/plugins/Google.py index 2f3c018e7..f2a960d9e 100644 --- a/plugins/Google.py +++ b/plugins/Google.py @@ -185,6 +185,8 @@ class GooglePrivmsgRegexp(callbacks.PrivmsgRegexp): fd.close() if match.group(0).find('&prev=/') >= 0: path = re.search('view the ]+)>no',text) + if path is None: + return url = 'http://groups.google.com' request = urllib2.Request('%s%s' % (url,path.group(1)), headers={'User-agent': 'Mozilla/4.0 (compatible; MSIE 5.5;'