def _find_exceptions():
    for name, obj in globals().items():
        try:
            is_http_exception = issubclass(obj, HTTPException)
        except __HOLE__:
            is_http_exception = False
        if not is_http_exception or obj.code is None:
            continue
        __all__.append(obj.__name__)
        old_obj = default_exceptions.get(obj.code, None)
        if old_obj is not None and issubclass(obj, old_obj):
            continue
        default_exceptions[obj.code] = obj
dataset/ETHPy150Open zeaphoo/cocopot/cocopot/exceptions.py/_find_exceptions