[Bf-blender-cvs] [7d3a28d2d9a] master: Cleanup: clarify branch which shouldn't be possible
Campbell Barton
noreply at git.blender.org
Mon Jun 24 17:18:05 CEST 2019
Commit: 7d3a28d2d9a568f020ab57ca9504d3dccba18e5b
Author: Campbell Barton
Date: Tue Jun 25 01:16:51 2019 +1000
Branches: master
https://developer.blender.org/rB7d3a28d2d9a568f020ab57ca9504d3dccba18e5b
Cleanup: clarify branch which shouldn't be possible
===================================================================
M release/scripts/startup/bl_operators/wm.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 35f8a289e45..7a39bd103b0 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1588,8 +1588,8 @@ class WM_OT_tool_set_by_index(Operator):
if fn(context, space_type, item.idname):
return {'FINISHED'}
else:
- self.report({'WARNING'}, f"Tool {self.name!r:s} not found for space {space_type!r:s}.")
- return {'CANCELLED'}
+ # Since we already have the tool, this can't happen.
+ raise Exception("Internal error setting tool")
class WM_OT_toolbar(Operator):
More information about the Bf-blender-cvs
mailing list