[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:
parent
b2c18892a6
commit
25a3b1dd4d
1 changed files with 5 additions and 2 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue