def IsSubclass(candidate, parent_class):
  try:
    return issubclass(candidate, parent_class)
  except TypeError:
    return False
Calls issubclass without raising an exception.
dataset/ETHPy150Open GoogleCloudPlatform/endpoints-proto-datastore/endpoints_proto_datastore/utils.py/IsSubclass