You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors in @property def schema (and probably any other @property in that class) do not yield useful tracebacks; instead, python "helpfully" falls back to __getattr__ and then fails in there, which is extremely unhelpful. This appears to be a specific case of encode/django-rest-framework#2108
Would it be possible to ditch the __getattr_ use, or alternatively the @propertys?
Traceback of what I'm hitting:
<ipython-input-2-8b3585dcab10> in <module>()
----> 1 res2 = schema.execute("query { subject_user {user_id} }", request_context=dict(_subject_user_id=1))
/usr/local/encap/python-2.7.7/lib/python2.7/site-packages/graphene/core/schema.pyc in execute(self, request, root, args, **kwargs)
120
121 def execute(self, request='', root=None, args=None, **kwargs):
--> 122 kwargs = dict(kwargs, request=request, root=root, args=args, schema=self.schema)
123 with self.plugins.context_execution(**kwargs) as execute_kwargs:
124 return self.executor.execute(**execute_kwargs)
/usr/local/encap/python-2.7.7/lib/python2.7/site-packages/graphene/core/schema.pyc in __getattr__(self, name)
47 if name in self.plugins:
48 return getattr(self.plugins, name)
---> 49 return super(Schema, self).__getattr__(name)
50
51 def T(self, _type):
AttributeError: 'super' object has no attribute '__getattr__'
The text was updated successfully, but these errors were encountered:
Errors in
@property def schema
(and probably any other@property
in that class) do not yield useful tracebacks; instead, python "helpfully" falls back to__getattr__
and then fails in there, which is extremely unhelpful. This appears to be a specific case of encode/django-rest-framework#2108Would it be possible to ditch the
__getattr_
use, or alternatively the@property
s?Traceback of what I'm hitting:
The text was updated successfully, but these errors were encountered: