This commit is contained in:
Jesse Bannon 2023-11-17 01:27:31 -08:00
parent ffa318a74d
commit 240fb7ea0d

View file

@ -226,7 +226,9 @@ class OverridesIntegerFormatterValidator(StringFormatterValidator):
try: try:
int(output) int(output)
except Exception as exc: except Exception as exc:
raise self._validation_exception(f"Expected an integer, but received '{output}'") from exc raise self._validation_exception(
f"Expected an integer, but received '{output}'"
) from exc
return output return output