fix(worker): unbound variable when episode url returns HTTP 404 (#2844)
### Description When the episode URL return a 404, the tmp_file is never set, and we have an unbound variable exception.
This commit is contained in:
parent
413b37d5e5
commit
3f396895e5
|
@ -59,6 +59,7 @@ def podcast_download(
|
||||||
Status of the podcast download as JSON string.
|
Status of the podcast download as JSON string.
|
||||||
"""
|
"""
|
||||||
result: Dict[str, Any] = {"episodeid": episode_id}
|
result: Dict[str, Any] = {"episodeid": episode_id}
|
||||||
|
tmp_file = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Download podcast episode file
|
# Download podcast episode file
|
||||||
|
|
Loading…
Reference in New Issue