def get_portable_version(portable, default_version):
    try:
        version = portable.get_class_version()
    except __HOLE__:
        version = default_version
    return version
dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/util.py/get_portable_version