Hide ConversionWarning by default

refs #839
This commit is contained in:
Laurent Bachelier 2012-04-10 08:01:27 +02:00
commit 2d463e060e

View file

@ -24,8 +24,9 @@ from optparse import OptionGroup, OptionParser
import os
import sys
import tempfile
import warnings
from weboob.capabilities.base import NotAvailable, NotLoaded
from weboob.capabilities.base import NotAvailable, NotLoaded, ConversionWarning
from weboob.core import Weboob, CallErrors
from weboob.core.backendscfg import BackendsConfig
from weboob.tools.config.iconfig import ConfigError
@ -304,6 +305,10 @@ class BaseApplication(object):
else:
level = logging.WARNING
# this only matters to developers
if not self.options.debug and not self.options.save_responses:
warnings.simplefilter('ignore', category=ConversionWarning)
handlers = []
if self.options.save_responses: