mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
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
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user