Skip to content

Commit 584ee22

Browse files
doruchanjustinfx
authored andcommitted
Fix for python2 rounding
1 parent d93f22f commit 584ee22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fileseq/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def pad(number, width=0, decimal_places=None):
405405
# https://github.com/PixarAnimationStudios/USD/blob/release/pxr/usd/usd/clipSetDefinition.cpp
406406
if decimal_places == 0:
407407
try:
408-
number = round(number)
408+
number = round(number) or 0
409409
except TypeError:
410410
pass
411411
return futils.native_str(number).partition(".")[0].zfill(width)

0 commit comments

Comments
 (0)