summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/textutils.py b/textutils.py
index fbaa69a..0524828 100644
--- a/textutils.py
+++ b/textutils.py
@@ -293,7 +293,7 @@ def apply_units( string, units, inter=None, final=float, blank_reg=_BLANK_RE,
value *= units[unit.lower()]
except KeyError:
raise KeyError('invalid unit %s. valid units are %s' %
- unit, units.keys())
+ (unit, units.keys()))
values.append(value)
return final(sum(values))