Skip to content

Commit 18531ba

Browse files
ChsudeeptaChsudeepta
authored andcommitted
Corrected usage of format in exception message
1 parent 5bef3a4 commit 18531ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/genie_python/genie_waitfor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,8 @@ def start_waiting(
357357

358358
if block is not None:
359359
if not isinstance(block, str):
360-
raise TypeError(
361-
"First argument must be a valid block name or None, not {}".format(block)
362-
)
360+
error = "First argument must be a valid block name or None, not {}".format(block)
361+
raise TypeError(error)
363362

364363
if not self.api.block_exists(block):
365364
raise NameError('No block with the name "{}" exists'.format(block))

0 commit comments

Comments
 (0)