We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 977b6c4 commit 646292bCopy full SHA for 646292b
1 file changed
pythonbits/bb.py
@@ -285,12 +285,14 @@ def _render_tags(self):
285
n = self['options']['num_cast']
286
d = self['options']['num_directors']
287
tags = list(self['summary']['genres'])
288
- tags += [a['name']
289
- for a in self['summary']['directors'][:d]
290
- if a['name']]
291
292
- for a in self['summary']['cast'][:n]
293
+ if 'directors' in self['summary']:
+ tags += [a['name']
+ for a in self['summary']['directors'][:d]
+ if a['name']]
+ if 'cast' in self['summary']:
294
+ for a in self['summary']['cast'][:n]
295
296
297
# Maximum tags length is 200 characters
298
def tags_string(tags):
0 commit comments