mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
Make pylint happy
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user