fixup: set a default value for the local
This commit is contained in:
1 parent
54932f4951
commit
9575185bbd
1 file changed
+1
@@ -34,6 +34,7 @@ def timedelta(value, arg=None, /, *, fmt_2=None):
|
||||
else:
|
||||
seconds_total = value
|
||||
|
||||
dynamic_arg = False
|
||||
if arg is None:
|
||||
if seconds_total < 1.0:
|
||||
return f'{seconds_total:.6f} seconds'
|
||||
|
||||
Reference in new issue
Block a user