Fix to excess asset query

This commit is contained in:
Don Mitchell
2014-06-05 12:17:00 -04:00
committed by Sarina Canelake
parent ade82c2d05
commit acc02b0e09
5 changed files with 13 additions and 21 deletions

View File

@@ -171,7 +171,7 @@ def remove_transcripts_from_store(_step, subs_id):
)
try:
content = contentstore().find(content_location)
contentstore().delete(content.get_id())
contentstore().delete(content.location)
print('Transcript file was removed from store.')
except NotFoundError:
print('Transcript file was NOT found and not removed.')