In general, if you have a bunch of preconditions before you can do work (e.g. "they must be enrolled"), do those checks earlier on, in small if/thens or try/except blocks. If you put a bunch of code between where you throw and catch something, it becomes more cumbersome for casual readers to figure out what's throwing the thing you're catching.