aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/text.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-02-14 17:17:07 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2022-02-14 17:17:07 -0500
commit7900ee4e3692dbd8056c3e47c81bb22eda030b65 (patch)
tree54d10ca35e4b8538d2c61470490642b660e2ae77 /gallery_dl/text.py
parent99bc014c924c755f10a4a930b1a83efabd84fde1 (diff)
New upstream version 1.20.5.upstream/1.20.5
Diffstat (limited to 'gallery_dl/text.py')
-rw-r--r--gallery_dl/text.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gallery_dl/text.py b/gallery_dl/text.py
index 74b87fb..ac4bbcb 100644
--- a/gallery_dl/text.py
+++ b/gallery_dl/text.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright 2015-2021 Mike Fährmann
+# Copyright 2015-2022 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -168,7 +168,7 @@ def parse_bytes(value, default=0, suffixes="bkmgtp"):
"""Convert a bytes-amount ("500k", "2.5M", ...) to int"""
try:
last = value[-1].lower()
- except (TypeError, KeyError, IndexError):
+ except (TypeError, LookupError):
return default
if last in suffixes: