Looks like this Exception name is carried over from the original handle_commission... but `NameError` isn't the appropriate exception type here. I'd either recommend just throwing the base Exception, or a new named exception for the sid mismatch.