Skip to content

Commit d08d37e

Browse files
author
Kevin D Smith
committed
Fix situation where "out" may not get set
1 parent 98bcff1 commit d08d37e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

swat/formatter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ def format(self, value, sasfmt=None, width=12):
225225

226226
def _generic_format(self, value, sasfmt=None, width=12):
227227
''' Generic formatter for when tkefmt isn't available '''
228+
out = None
229+
228230
if isinstance(value, float64_types):
229231
if np.isnan(value) or value is None:
230232
out = a2u(str(value))

0 commit comments

Comments
 (0)