Skip to content

Commit

Permalink
Mypy: error assigned to e caused mypy to crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
don4get committed Nov 11, 2020
1 parent 9f573ae commit 5149a96
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 24 deletions.
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/add_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_ADD
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/eq_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_EQUAL
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/ge_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_GREATER_EQUAL
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/gt_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_GREATER
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/le_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_LESS_EQUAL
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/lt_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_LESS
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/mod_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_MODULO
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/mul_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_MULTIPLY
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/pow_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_POWER
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/sub_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_SUBTRACT
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions nodedge/blocks/autogen/operator/truediv_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

try:
from nodedge.blocks.block_config import OP_NODE_DIVIDE
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down
3 changes: 1 addition & 2 deletions tools/block_generator/block_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ _LOG = logging.getLogger(__name__)

try:
from nodedge.blocks.block_config import ${op_block_string}
except NameError as e:
except NameError:
_LOG.warning(f"Not registered block: {__name__}")
_LOG.warning(e)
op_block_string = -1


Expand Down

0 comments on commit 5149a96

Please sign in to comment.