From 48f2de64a46b21bde8e896d356e9358521bfaf6e Mon Sep 17 00:00:00 2001 From: James Vega Date: Sun, 18 Apr 2004 20:16:55 +0000 Subject: [PATCH] If a project doesn't have any bugs/rfes/trackers, we should just say so instead of raising an exception and making it look like there was a problem. --- plugins/Sourceforge.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/Sourceforge.py b/plugins/Sourceforge.py index b0144fa2c..46f7cb204 100644 --- a/plugins/Sourceforge.py +++ b/plugins/Sourceforge.py @@ -150,6 +150,8 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp): def _getTrackerList(self, url): try: text = webutils.getUrl(url) + if "No matches found." in text: + return 'No trackers were found.' head = '#%s: %s' resp = [head % entry for entry in self._formatResp(text)] if resp: