mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
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:
parent
8955f433be
commit
48f2de64a4
@ -150,6 +150,8 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
def _getTrackerList(self, url):
|
def _getTrackerList(self, url):
|
||||||
try:
|
try:
|
||||||
text = webutils.getUrl(url)
|
text = webutils.getUrl(url)
|
||||||
|
if "No matches found." in text:
|
||||||
|
return 'No trackers were found.'
|
||||||
head = '#%s: %s'
|
head = '#%s: %s'
|
||||||
resp = [head % entry for entry in self._formatResp(text)]
|
resp = [head % entry for entry in self._formatResp(text)]
|
||||||
if resp:
|
if resp:
|
||||||
|
Loading…
Reference in New Issue
Block a user