def getusername(id): if id == 1: return 'Vicky' else: raise 'no such user id %s' % id