Assign seps variable of Lang.format before using it

issue9585
review306331002
This commit is contained in:
Cédric Krier committed 2020-09-16 23:25:48 +02:00
1 parent 2a0fdf407e
commit c2aee769f2
1 file changed
+1
+1
View File
@@ -452,6 +452,7 @@ class Lang(DeactivableMixin, ModelSQL, ModelView):
if seps:
formatted = _strip_padding(formatted, seps)
elif percent[-1] in 'diu':
seps = 0
if grouping:
formatted, seps = self._group(formatted, monetary=monetary)
if seps: