summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2018-05-08 23:53:50 +0200
committertoonn <toonn@toonn.io>2018-05-08 23:53:50 +0200
commit9fb3fae3c34527a24a8c8b294a716aa6ff7f74f0 (patch)
tree55833b5b974b41140f738f55b9481880e7f576c6
parent6deadc85272efa4bda8e948969a97400f071a0e8 (diff)
parentc921a418d1241170b78c3a4bdc4fd6a5083432fd (diff)
downloadranger-9fb3fae3c34527a24a8c8b294a716aa6ff7f74f0.tar.gz
Merge branch 'no_count'
-rw-r--r--ranger/ext/human_readable.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/ext/human_readable.py b/ranger/ext/human_readable.py
index df74eabf..f365e594 100644
--- a/ranger/ext/human_readable.py
+++ b/ranger/ext/human_readable.py
@@ -15,6 +15,10 @@ def human_readable(byte, separator=' '):  # pylint: disable=too-many-return-stat
     '1023 M'
     """
 
+    # handle automatically_count_files false
+    if byte is None:
+        return ''
+
     # I know this can be written much shorter, but this long version
     # performs much better than what I had before.  If you attempt to
     # shorten this code, take performance into consideration.