From bbfcc2e3fe70efcc715f6b786663af2a5d9efb6e Mon Sep 17 00:00:00 2001 From: 2Shirt <1923621+2Shirt@users.noreply.github.com> Date: Wed, 30 May 2018 17:26:49 -0600 Subject: [PATCH] Hotfix: Handle size=None in human_readable_size() --- .bin/Scripts/functions/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bin/Scripts/functions/common.py b/.bin/Scripts/functions/common.py index f5a2ef95..f677df45 100644 --- a/.bin/Scripts/functions/common.py +++ b/.bin/Scripts/functions/common.py @@ -234,6 +234,8 @@ def human_readable_size(size, decimals=0): size = int(size) except ValueError: size = convert_to_bytes(size) + except TypeError: + size = -1 # Verify we have a valid size if size < 0: