you could wrap this is a try except block:

    try:
        del self.user[self.lookup_name(name)]
    except KeyError:
        pass

alternatively just reset the value:

    self.user[self.lookup_name(name)] = {}

the former approach is probably better.