Permalink
Browse files

Jamu: Don't crash if cast is NULL.

Fixes #9693.
  • Loading branch information...
1 parent 3ffe4d2 commit bda604d887be6f685bdbd29fd6ddc6cfce5f836f Robert McNamara committed Jun 19, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythtv/contrib/metadata/jamu.py
@@ -2542,7 +2542,8 @@ def getSeriesEpisodeData(self):
if len(tmp_cast):
cast_members=''
for cast in tmp_cast:
- cast_members+=(cast['name']+u', ').encode('utf8')
+ if cast['name'] is not None:
+ cast_members+=(cast['name']+u', ').encode('utf8')
if cast_members != '':
try:
cast_members = cast_members[:-2].encode('utf8')

0 comments on commit bda604d

Please sign in to comment.