logger.warn may use a None object (pyc)