diff options
| author | 2022-02-14 17:17:16 -0500 | |
|---|---|---|
| committer | 2022-02-14 17:17:16 -0500 | |
| commit | c37531a0d32d2e15064059d818c27e9e2ed13aa0 (patch) | |
| tree | 8fd6a77233e21e13b8d1408d1319aa12e908b57e /gallery_dl/text.py | |
| parent | 56cc11b792210fb9721dd8454f246d191ac7fa9d (diff) | |
| parent | 7900ee4e3692dbd8056c3e47c81bb22eda030b65 (diff) | |
Update upstream source from tag 'upstream/1.20.5'
Update to upstream version '1.20.5'
with Debian dir f96e9e10e920a5672c11bfa398cc886bc71e5870
Diffstat (limited to 'gallery_dl/text.py')
| -rw-r--r-- | gallery_dl/text.py | 4 |
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: |
