agdsn / sipa

The Supreme Information Providing Application
MIT License
13 stars 10 forks source link

ValueError: invalid literal for int() with base 16: 'V' #451

Closed agdsn-sentry[bot] closed 1 year ago

agdsn-sentry[bot] commented 1 year ago

Sentry Issue: SIPA-2J

ValueError: invalid literal for int() with base 16: 'V'
(7 additional frame(s) were not displayed)
...
  File "wtforms/form.py", line 329, in validate
    return super().validate(extra)
  File "wtforms/form.py", line 146, in validate
    if not field.validate(self, extra):
  File "wtforms/fields/core.py", line 242, in validate
    stop_validation = self._run_validation_chain(form, chain)
  File "wtforms/fields/core.py", line 262, in _run_validation_chain
    validator(form, self)
  File "sipa/forms.py", line 230, in require_unicast_mac
    if int(field.data[1], 16) % 2:
lukasjuhrich commented 1 year ago

https://github.com/agdsn/sipa/blob/e4cefe376881edda04291a330027cbd5ab4ff110/sipa/forms.py#L241-L248

agdsn-sentry[bot] commented 1 year ago

Related: Sentry issue: SIPA-34. Fixed by #452