Skip to content

Commit

Permalink
Removes email_spec if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Enxing committed Aug 7, 2023
1 parent 4897a7b commit 922a678
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/main/rest/transcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def _job_to_transcode(job):
"media_id": job["media_id"],
}

if not spec["email_spec"]:
spec.pop("email_spec", None)

return {
"spec": spec,
"job": {
Expand Down

0 comments on commit 922a678

Please sign in to comment.