from nullptr.util import AppError def assign_surveyor(c, s): if s.crew is None: raise AppError('ship has no crew') w = s.crew.site c.init_mission(s, 'survey') c.smipa(s, 'site', w)