if err is not None and len(err) > 0:
        logging.error(err)