make error message on accessing private attributes more representative
diff --git a/gym/core.py b/gym/core.py
index f335b9f60ab..e8d2ff0f282 100644
--- a/gym/core.py
+++ b/gym/core.py
@@ -225,7 +225,7 @@ def __init__(self, env: Env):
 
     def __getattr__(self, name):
         if name.startswith("_"):
-            raise AttributeError(f"attempted to get missing private attribute '{name}'")
+            raise AttributeError(f"accessing private attribute '{name}' is prohibited")
         return getattr(self.env, name)
 
     @property

This error message was kinda misleading.
The code is checking if a private attributes is accessed and then raises an error.