Skip to content

Commit

Permalink
Fixed missing exception case that could lead to empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanoGuerrini committed Apr 11, 2024
1 parent 6f39297 commit 47fcb27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hda/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def stream(self, download_id, size, download_dir):
total += len(chunk)
pbar.update(len(chunk))

except requests.exceptions.ConnectionError as e:
except requests.exceptions.RequestException as e:
logger.error("Download interrupted: %s" % (e,))
finally:
r.close()
Expand Down

0 comments on commit 47fcb27

Please sign in to comment.