code: def get_domain(self, identity):
          
          domain = None
          if identity['email']:
              try:
                  domain = identity['email'].split("@")[1]
              except IndexError:
                  # logger.warning("Bad email format: %s" % (identity['email']))
                  pass
          return domain
docs: Get the domain from a SH identity