forked from M-Labs/artiq
1
0
Fork 0

units: fix strip_unit

This commit is contained in:
Sebastien Bourdeauducq 2015-02-27 10:43:03 -07:00
parent 0abd41a04a
commit f307897bec
1 changed files with 2 additions and 0 deletions

View File

@ -262,3 +262,5 @@ def strip_unit(value, unit):
raise DimensionError raise DimensionError
else: else:
return value.amount return value.amount
else:
return value