Calling print_exc to not hide the exception