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
1 changed files with 5 additions and 0 deletions

View File

@ -220,6 +220,11 @@ class Debian(callbacks.Privmsg,
return
else:
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)
if m:
numberOfPackages = m.group(1)