mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] Workaround for genshi DeprecationWarning that makes runbot build red
Co-authored-by: Nils Hamerlinck <nilshamerlinck@users.noreply.github.com>
This commit is contained in:
@@ -21,7 +21,11 @@ from ._py3o_parser_context import Py3oParserContext
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from py3o.template import Template
|
# workaround for https://github.com/edgewall/genshi/issues/15
|
||||||
|
# that makes runbot build red because of the DeprecationWarning
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
||||||
|
from py3o.template import Template
|
||||||
from py3o import formats
|
from py3o import formats
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.debug("Cannot import py3o.template")
|
logger.debug("Cannot import py3o.template")
|
||||||
|
|||||||
Reference in New Issue
Block a user