mahmoud / glom

☄️ Python's nested data operator (and CLI), for all your declarative restructuring needs. Got data? Glom it! ☄️
https://glom.readthedocs.io
Other
1.88k stars 61 forks source link

unprintable PathAccessError when using Scope/S #249

Open mahmoud opened 1 year ago

mahmoud commented 1 year ago
>>> glom.glom({}, glom.S['X'], scope={'x': 'y'})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mahmoud/projects/venv/lib/python3.10/site-packages/glom/core.py", line 2294, in glom
    raise err
glom.core.PathAccessError: error raised while processing, details below.
 Target-spec trace (most recent last):
 - Target: {}
 - Spec: S['X']
glom.core.PathAccessError: <unprintable PathAccessError object>