cutter: Fix multiple problems with logging errors

pull/157/head
Mike Lang 5 years ago
parent 72003f28d0
commit a438d86f80

@ -402,7 +402,7 @@ class Cutter(object):
self.logger.critical((
"Error occurred while finalizing upload of job {}. "
"You will need to check the state of the video manually."
).format(format_job(job)))
).format(format_job(job)), exc_info=True)
error = (
"An error occurred during FINALIZING, please determine if video was actually "
"uploaded or not and either move to TRANSCODING/DONE and populate video_id or rollback "

@ -166,7 +166,7 @@ class Youtube(UploadBackend):
if 400 <= resp.status_code < 500:
# As above, don't retry. But with 4xx's we know the upload didn't go through.
# On a 5xx, we can't be sure (the server is in an unspecified state).
raise UploadError("Youtube video data upload failed with {status_code}: {resp.content}".format(resp=resp))
raise UploadError("Youtube video data upload failed with {resp.status_code}: {resp.content}".format(resp=resp))
resp.raise_for_status()
id = resp.json()['id']
return id, 'https://youtu.be/{}'.format(id)

Loading…
Cancel
Save