A quantity field in a small form checks s.isdigit() and then calls int(s). Someone pasted ² and got a ValueError from the very line the check was meant to protect.
The two use different rules. isdigit() is true for any character with a digit value, which takes in superscripts and circled digits like ⑦. int() wants decimal digits, the isdecimal() set, so ² passes the first and fails the second.
for s in ["7", "²", "٣", "3"]:
print(repr(s), s.isdigit(), s.isdecimal())
print(int("٣"), int("3")) # 3 3
Switching the check to isdecimal() would stop the crash. It would also let Arabic-Indic ٣ and full-width 3 through as 3, and the field never showed either of those as an option. So the crash has an obvious fix, and I'm not yet sure the field should accept those characters at all. What do you all allow in a numeric input?