Compare commits

...

3 Commits

2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@
youtube-dl - download videos from youtube.com or other video platforms
# Table of Contents
- [INSTALLATION](#installation)
- [DESCRIPTION](#description)
- [OPTIONS](#options)

View File

@ -686,6 +686,8 @@ class JSInterpreter(object):
raise self.Exception('Cannot get index {idx!r:.100}'.format(**locals()), expr=repr(obj), cause=e)
def _dump(self, obj, namespace):
if obj is JS_Undefined:
return 'undefined'
try:
return json.dumps(obj)
except TypeError: