Commit 09815f4d authored by Ilya Simonov's avatar Ilya Simonov

add log exception for send_video_to_s3

parent a6d427f9
......@@ -117,7 +117,8 @@ def send_video_to_s3(video_id=None):
for playlist in playlists:
playlist.videos.add(local_video)
except:
except Exception as e:
log.error(e)
local_video.status = FAIL
local_video.save(update_fields=['status'])
log.info(f'Video {video_id} upload failed!')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment