From e6782b3c171eae34a41d7700482841cb2b7441df Mon Sep 17 00:00:00 2001 From: j Date: Thu, 6 Jul 2023 18:13:26 +0530 Subject: [PATCH] not all movies have connections --- ox/web/imdb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index b541b38..e9f1973 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -123,6 +123,8 @@ def tech_spec(metadata): def movie_connections(metadata): connections = {} + if 'props' not in metadata: + return connections for row in metadata['props']['pageProps']['contentData']['categories']: title = { }.get(row['name'], row['name'])