Skip to content

Commit

Permalink
Fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
henryk committed Apr 20, 2011
1 parent ffc5ac2 commit d0b8667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def _setbyte(self, name, value):
elif isinstance(value, str):
setattr(self, "_"+name, ord(value))
else:
raise ValueError, "'%s' attribute can only be a byte, that is: int or str, not %s" % (namelower, type(value))
raise ValueError, "'%s' attribute can only be a byte, that is: int or str, not %s" % (name, type(value))

def _format_parts(self, fields):
"utility function to be used in __str__ and __repr__"
Expand Down

0 comments on commit d0b8667

Please sign in to comment.