chore: raise from specific exceptions
This commit is contained in:
parent
284fd5c688
commit
f8f6fda794
6 changed files with 7 additions and 7 deletions
|
@ -65,7 +65,7 @@ class PypoFile(Thread):
|
|||
handle.write(chunk)
|
||||
|
||||
except HTTPError as exception:
|
||||
raise Exception(
|
||||
raise RuntimeError(
|
||||
f"could not download file {media_item['id']}"
|
||||
) from exception
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue