def has_table()

in parquet_flask/aws/aws_ddb.py [0:0]


    def has_table(self):
        if self.__props.tbl_name is None:
            raise ValueError('missing tbl_name')
        try:
            tbl_details = self._ddb_client.describe_table(TableName=self.__props.tbl_name)
            return tbl_details
        except Exception as e:
            # TODO should check if exception is this one "ResourceNotFoundException". if not, throw the error
            return None