Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-06-24 18:16:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-24 18:16:51 +0300
commit7d3a28d2d9a568f020ab57ca9504d3dccba18e5b (patch)
tree04c010a8f410d25f221b23d8bc654131ad3853b0 /release
parentb2a20c2d9e6910a35daa468a933431c84bb3c928 (diff)
Cleanup: clarify branch which shouldn't be possible
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/wm.py4
1 files changed, 2 insertions, 2 deletions
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):