]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/jsinterp.py
Update to ytdl-commit-d1c6c5
[yt-dlp.git] / yt_dlp / jsinterp.py
index 82974fb27b34b07defbff97e3fb3cb6c7a283a5a..1ef1f0823a779f5f87bf9b6cead7ab7374c14570 100644 (file)
@@ -443,7 +443,7 @@ def dict_item(key, val):
                 err = e
 
             pending = (None, False)
-            m = re.match(r'catch\s*(?P<err>\(\s*{_NAME_RE}\s*\))?\{{'.format(**globals()), expr)
+            m = re.match(fr'catch\s*(?P<err>\(\s*{_NAME_RE}\s*\))?\{{', expr)
             if m:
                 sub_expr, expr = self._separate_at_paren(expr[m.end() - 1:])
                 if err: