Show More
@@ -281,7 +281,7 b' class hybrid(wrapped):' | |||
|
281 | 281 | |
|
282 | 282 | def getmember(self, context, mapping, key): |
|
283 | 283 | # TODO: maybe split hybrid list/dict types? |
|
284 |
if not util.safehasattr(self._values, |
|
|
284 | if not util.safehasattr(self._values, 'get'): | |
|
285 | 285 | raise error.ParseError(_(b'not a dictionary')) |
|
286 | 286 | key = unwrapastype(context, mapping, key, self._keytype) |
|
287 | 287 | return self._wrapvalue(key, self._values.get(key)) |
General Comments 0
You need to be logged in to leave comments.
Login now