Stop throwing TypeErrors (#43036)
This commit is contained in:
parent
b02e0c07d8
commit
a9b077f763
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ def format_disk_size(size_bytes, unit):
|
|||
|
||||
# Shortcut
|
||||
if size_bytes == 0:
|
||||
return 0.0
|
||||
return 0.0, 'b'
|
||||
|
||||
# Cases where we default to 'compact'
|
||||
if unit in ['', 'compact', 'cyl', 'chs']:
|
||||
|
|
Loading…
Reference in a new issue