`Exception.__traceback__` can potentially be None so for convenience (and because the simplest way of implementing it will allow it anyway), traceback.clear_frames() allows None.