diff --git a/snap7/client.py b/snap7/client.py index 5108ec56..890f12b8 100644 --- a/snap7/client.py +++ b/snap7/client.py @@ -469,9 +469,6 @@ def list_blocks_of_type(self, block_type: Block, size: int) -> Union[int, Array[ Returns: If size is 0, it returns a 0, otherwise an `Array` of specified block type. - - Raises: - :obj:`ValueError`: if the `block_type` is not valid. """ logger.debug(f"listing blocks of type: {block_type} size: {size}") @@ -498,11 +495,8 @@ def get_block_info(self, block_type: Block, db_number: int) -> TS7BlockInfo: Returns: Structure of information from block. - Raises: - :obj:`ValueError`: if the `blocktype` is not valid. - Examples: - >>> block_info = Client().get_block_info("DB", 1) + >>> block_info = Client().get_block_info(block_type.DB, 1) >>> print(block_info) Block type: 10 Block number: 1