flake8 check

This commit is contained in:
Kyle Gonsalves 2024-04-21 16:41:19 -07:00
parent e2ae76e84c
commit 4b9a54b464

View file

@ -1270,7 +1270,7 @@ def extract_all(pattern):
def parse_model(model):
'''Extract single video from model structure'''
if(type(model) == list):
if isinstance(model, list):
model = model[0]
item_id = traverse_obj(model, ('versions', 0, 'versionId', {str}))
if not item_id: