parent
36db83d74e
commit
2d463e060e
1 changed files with 6 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue