@uri.setter
    def uri(self, value):
        try:
            self._uri = value.encode("ascii")
        except __HOLE__:
            raise ValueError("uri value must be an ascii string")
        except AttributeError:
            raise TypeError("uri value must be a str type")
dataset/ETHPy150Open javgh/greenaddress-pos-tools/nfc/ndef/uri_record.py/UriRecord.uri