diff --git a/snikket_web/infra.py b/snikket_web/infra.py index c17f01b..c5e9ef0 100644 --- a/snikket_web/infra.py +++ b/snikket_web/infra.py @@ -60,7 +60,7 @@ def format_bytes(n: float) -> str: try: unit = BYTE_UNIT_SCALE_MAP[scale] factor = 1024**scale - except ValueError: + except IndexError: unit = "TiB" factor = 1024**4 if factor > 1: