diff --git a/python/mujoco/specs.cc b/python/mujoco/specs.cc
index 3a834ff3..64afef62 100644
--- a/python/mujoco/specs.cc
+++ b/python/mujoco/specs.cc
@@ -261,7 +261,7 @@ py::list FindAllImpl(raw::MjsBody& body, mjtObj objtype, bool recursive) {
// this should never happen
throw pybind11::value_error(
"body.find_all supports the types: body, frame, geom, site, "
- "light, camera.");
+ "joint, light, camera.");
break;
}
el = mjs_nextChild(&body, el, recursive);
diff --git a/python/mujoco/specs_test.py b/python/mujoco/specs_test.py
index f0c3bb6c..bfefd71f 100644
--- a/python/mujoco/specs_test.py
+++ b/python/mujoco/specs_test.py
@@ -636,6 +636,8 @@ class SpecsTest(absltest.TestCase):