Make pylint happy

This commit is contained in:
Guewen Baconnier
2016-11-03 16:58:36 +01:00
parent 3fd26cb894
commit 3c8b74369b
9 changed files with 32 additions and 15 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
{'name': 'JSON Logging',
'version': '9.0.1.0.0',
'author': 'Camptocamp',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'license': 'AGPL-3',
'category': 'Extra Tools',
'depends': ['base',
+7 -1
View File
@@ -6,7 +6,13 @@ import threading
from distutils.util import strtobool
from pythonjsonlogger import jsonlogger
_logger = logging.getLogger(__name__)
try:
from pythonjsonlogger import jsonlogger
except ImportError:
jsonlogger = None # noqa
_logger.debug("Cannot 'import pythonjsonlogger'.")
def is_true(strval):