From 60797f770da1bda6d5696131d6cd348f707a773d Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 9 Dec 2003 00:32:53 +0000 Subject: [PATCH] Handle p.d.o being down gracefully. --- plugins/Debian.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/Debian.py b/plugins/Debian.py index 8c528bd4e..fb84e3247 100644 --- a/plugins/Debian.py +++ b/plugins/Debian.py @@ -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)