Fix dynamic tool destination handling of infinity exception

This commit is contained in:
Dannon Baker
2020-06-26 10:43:45 -04:00
parent 53dc361ba3
commit 7bc324f905
+1 -1
View File
@@ -1219,7 +1219,7 @@ def bytes_to_str(size, unit="YB"):
try:
return_str = "{:.2f} {}".format(size_changer, units[i])
except TypeError:
except (ValueError, TypeError):
return_str = "%s" % (size_changer)
return return_str