From afde3fee9a1110ca7933155c52d3861c7395bbfb Mon Sep 17 00:00:00 2001 From: Gijs Molenaar Date: Mon, 7 Oct 2024 14:40:02 +0200 Subject: [PATCH] fix issue #537 (#538) --- snap7/client.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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