1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-21 17:51:51 +00:00

[swfinterp] Better error message

This commit is contained in:
Philipp Hagemeister 2014-11-17 03:53:32 +01:00
parent 4baafa229d
commit 0ab1ca5501
2 changed files with 2 additions and 2 deletions

View file

@ -564,7 +564,7 @@ class SWFInterpreter(object):
elif isinstance(pname, compat_str): # Member access elif isinstance(pname, compat_str): # Member access
obj = stack.pop() obj = stack.pop()
assert isinstance(obj, (dict, _ScopeDict)), \ assert isinstance(obj, (dict, _ScopeDict)), \
'Accessing member on %r' % obj 'Accessing member %r on %r' % (pname, obj)
stack.append(obj[pname]) stack.append(obj[pname])
else: # Assume attribute access else: # Assume attribute access
idx = stack.pop() idx = stack.pop()