We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e4c39a commit d459d46Copy full SHA for d459d46
src/mock_vws/_validators.py
@@ -452,6 +452,16 @@ def validate_name(
452
}
453
return json_dump(body)
454
455
+ try:
456
+ name.encode('ascii')
457
+ except UnicodeEncodeError:
458
+ context.status_code = codes.INTERNAL_SERVER_ERROR
459
+ body = {
460
+ 'transaction_id': uuid.uuid4().hex,
461
+ 'result_code': ResultCodes.FAIL.value,
462
+ }
463
+ return json_dump(body)
464
+
465
466
return wrapped(*args, **kwargs)
467
0 commit comments