mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-30 18:13:23 +08:00
Fix dynamic tool destination handling of infinity exception
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user