We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bef3a4 commit 18531baCopy full SHA for 18531ba
src/genie_python/genie_waitfor.py
@@ -357,9 +357,8 @@ def start_waiting(
357
358
if block is not None:
359
if not isinstance(block, str):
360
- raise TypeError(
361
- "First argument must be a valid block name or None, not {}".format(block)
362
- )
+ error = "First argument must be a valid block name or None, not {}".format(block)
+ raise TypeError(error)
363
364
if not self.api.block_exists(block):
365
raise NameError('No block with the name "{}" exists'.format(block))
0 commit comments