mirror of https://github.com/Mikaela/Limnoria.git
Handle p.d.o being down gracefully.
This commit is contained in:
parent
1608d2520b
commit
60797f770d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue