try: difficulty() except Exception as e: opportunity = find_opportunity(e)