import logging

try:
    int("invalid")
except Exception:
    logging.error("operation failed")
