diff options
| author | Magnus Hagander | 2025-06-02 09:34:15 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2025-06-02 09:34:15 +0000 |
| commit | c7dfd89c9ba2910f81f8c371d2842d6227ee8c00 (patch) | |
| tree | eb2eef06028dcd60c2c7c927f76d653b19528d87 /postgresqleu/util | |
| parent | 91340694ad4ffd922b3f5290867f6dd9fd692c5f (diff) | |
Don't crash on misspelled http/https in sponsor signup
Instead, give a proper error message.
Diffstat (limited to 'postgresqleu/util')
| -rw-r--r-- | postgresqleu/util/validators.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/postgresqleu/util/validators.py b/postgresqleu/util/validators.py index 0cc2026f..0bf11c87 100644 --- a/postgresqleu/util/validators.py +++ b/postgresqleu/util/validators.py @@ -54,6 +54,8 @@ def Http200Validator(value): raise ValidationError("Connection to server failed") except requests.exceptions.ReadTimeout: raise ValidationError("URL timed out") + except requests.exceptions.InvalidSchema: + raise ValidationError("Invalid schema in URL, please use http or https") def TwitterValidator(value): |
