diff --git a/report_py3o/models/py3o_report.py b/report_py3o/models/py3o_report.py index c204431e8..bee761208 100644 --- a/report_py3o/models/py3o_report.py +++ b/report_py3o/models/py3o_report.py @@ -21,7 +21,11 @@ from ._py3o_parser_context import Py3oParserContext logger = logging.getLogger(__name__) 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 except ImportError: logger.debug("Cannot import py3o.template")