aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/exception.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2024-03-25 02:57:50 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2024-03-25 02:57:50 -0400
commit039aecad63a074bdcc75bd4f30c84bdc4a1a244f (patch)
tree39997d0361f67208c716fba6717895b42ee309d1 /gallery_dl/exception.py
parent77d11300e15ee4045b187a58ee6e039624e5d69c (diff)
parent6e662211019a89caec44de8a57c675872b0b5498 (diff)
Update upstream source from tag 'upstream/1.26.9'
Update to upstream version '1.26.9' with Debian dir e04ff15132747292d335c9d456bd879aca333115
Diffstat (limited to 'gallery_dl/exception.py')
-rw-r--r--gallery_dl/exception.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gallery_dl/exception.py b/gallery_dl/exception.py
index ee183fc..08dcfdc 100644
--- a/gallery_dl/exception.py
+++ b/gallery_dl/exception.py
@@ -57,7 +57,7 @@ class HttpError(ExtractionError):
def __init__(self, message, response=None):
ExtractionError.__init__(self, message)
self.response = response
- self.status = response.status_code if response else 0
+ self.status = 0 if response is None else response.status_code
class NotFoundError(ExtractionError):