From 002e5409e23be0ccbc550fd09521e5cb05e69dac Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Fri, 3 Jul 2015 09:18:01 +0200 Subject: [PATCH] Only check if OCA_RUNBOT exists, not its value. --- base_contact/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_contact/__init__.py b/base_contact/__init__.py index aa44c3e30..1b67c0a1c 100644 --- a/base_contact/__init__.py +++ b/base_contact/__init__.py @@ -27,6 +27,6 @@ import os _logger = logging.getLogger(__name__ + ".deprecated") # Skip warnings on runbots -_method = _logger.info if os.environ.get("OCA_RUNBOT") else _logger.warning +_method = _logger.info if "OCA_RUNBOT" in os.environ else _logger.warning _method("This module is DEPRECATED. See %s/README.rst.", os.path.dirname(__file__))