| Index: third_party/handlebar/handlebar.py
|
| diff --git a/third_party/handlebar/handlebar.py b/third_party/handlebar/handlebar.py
|
| index d05e15e884fc49af7a149893bec18b6219b46443..83e88da71cd8665e9757abfdec88af0028da063f 100644
|
| --- a/third_party/handlebar/handlebar.py
|
| +++ b/third_party/handlebar/handlebar.py
|
| @@ -82,7 +82,7 @@ class PathIdentifier(object):
|
| def _resolveFrom(self, context):
|
| result = context
|
| for next in self.path:
|
| - if not result or type(result) != dict:
|
| + if not result or not getattr(result, "get", None):
|
| return None
|
| result = result.get(next)
|
| return result
|
|
|