Skip to content

Commit 29b7c6d

Browse files
authored
Fix error message for non-UTF8 strings (#205)
1 parent 2ec7d02 commit 29b7c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dropbox/stone_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def validate(self, val):
305305
try:
306306
val = val.decode('utf-8')
307307
except UnicodeDecodeError:
308-
raise ValidationError("'%s' was not valid utf-8")
308+
raise ValidationError("'%s' was not valid utf-8" % val)
309309

310310
if self.max_length is not None and len(val) > self.max_length:
311311
raise ValidationError("'%s' must be at most %d characters, got %d"

0 commit comments

Comments
 (0)