Do not crash if one value is NotAvailable
This commit is contained in:
parent
8f732eafb8
commit
965dcfc60b
1 changed files with 3 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ import sys
|
|||
import locale
|
||||
import time
|
||||
import logging
|
||||
from weboob.capabilities.base import NotAvailable
|
||||
from weboob.core import Weboob, CallErrors
|
||||
from weboob.tools.browser import BrowserIncorrectPassword
|
||||
|
||||
|
|
@ -261,7 +262,8 @@ class GenericMuninPlugin(object):
|
|||
for backend, result in self.build_do():
|
||||
if self.monitored(result):
|
||||
value = self.get_value(result)
|
||||
self.write_output('%s.value %f' % (self.result2id(result), value))
|
||||
if value is not NotAvailable:
|
||||
self.write_output('%s.value %f' % (self.result2id(result), value))
|
||||
except CallErrors, errors:
|
||||
self.print_errors(errors)
|
||||
self.print_cache(self.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue