Browse Source

Only check if OCA_RUNBOT exists, not its value.

pull/120/head
Jairo Llopis 10 years ago
parent
commit
002e5409e2
  1. 2
      base_contact/__init__.py

2
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__))
Loading…
Cancel
Save