[wiki-lenny/.../MuninStatus] Ne pas planter quand munin n'a rien à dire (si, ça peut arriver)

Ignore-this: d4836b79c051c946549381d5d707587c

darcs-hash:20090217235740-ffbb2-524137309ae4d72ad60436917d88b587b5e8d556.gz
This commit is contained in:
Nicolas Dandrimont 2009-02-18 00:57:40 +01:00
parent b2c18892a6
commit 25a3b1dd4d

View file

@ -79,5 +79,8 @@ def execute(macro, _):
for tag in munin.findAll(href=True):
tag["href"] = u'http://munin.crans.org/' + tag["href"]
return to_unicode(munin.html.body.prettify())
if munin.html and munin.html.body:
return to_unicode(munin.html.body.prettify())
else:
return u"Munin n'a rien à dire."