Skip to content

Commit

Permalink
Fixed an issue with property value translation
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzeman committed Feb 24, 2017
1 parent 2f0da48 commit 660438d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion byte/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def __translate_value(self, mode, value):
raise Exception("Invalid translation function '%s' for %r" % (mode, self.value_type))

# Translate value
return getattr(translation, mode).decode(value)
return getattr(translation, mode)(value)

def __repr__(self):
"""Retrieve string representation of model property."""
Expand Down

0 comments on commit 660438d

Please sign in to comment.