Handle p.d.o being down gracefully.

This commit is contained in:
Jeremy Fincher 2003-12-09 00:32:53 +00:00
parent 1608d2520b
commit 60797f770d

View File

@ -220,6 +220,11 @@ class Debian(callbacks.Privmsg,
return return
else: else:
raise raise
if 'is down at the moment' in html:
irc.error(msg, 'Packages.debian.org is down at the moment. '
'Please try again later.')
return
m = self._debnumpkgsre.search(html) m = self._debnumpkgsre.search(html)
if m: if m:
numberOfPackages = m.group(1) numberOfPackages = m.group(1)