Skip to content

Commit

Permalink
remove getattr
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrhawk committed Nov 5, 2015
1 parent f92a766 commit 26685f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lib/xmodule/xmodule/video_module/video_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def editor_saved(self, user, old_metadata, old_content):
# checking if transcript is present for the video and if any html5_ids transcript is not present then trigger
# the manage_video_subtitles_save to create the missing transcript with particular html5_id.
if not metadata_was_changed_by_user and self.sub and hasattr(self, 'html5_sources'):
html5_ids = get_html5_ids(getattr(self, 'html5_sources', []))
html5_ids = get_html5_ids(self.html5_sources)
for subs_id in html5_ids:
try:
Transcript.asset(self.location, subs_id)
Expand Down

0 comments on commit 26685f9

Please sign in to comment.