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.
This commit is contained in:
James Vega 2004-04-18 20:16:55 +00:00
parent 8955f433be
commit 48f2de64a4

View File

@ -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: