diff options
author | 2021-02-24 13:53:08 +0100 | |
---|---|---|
committer | 2021-02-24 13:53:08 +0100 | |
commit | da6b581185e8bbe37e561a05827c8517824c7d2c (patch) | |
tree | 2b4f0591fc9b76b74eaa1afd17161758331777c1 /backend/models | |
parent | Hook up unittesting in the submit protocol (diff) |
Switch to 100 chars line length and get rid of the noqas
Diffstat (limited to 'backend/models')
-rw-r--r-- | backend/models/form.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/models/form.py b/backend/models/form.py index 8e59905..eac0b63 100644 --- a/backend/models/form.py +++ b/backend/models/form.py @@ -47,7 +47,7 @@ class Form(BaseModel): if any(v not in allowed_values for v in value): raise ValueError("Form features list contains one or more invalid values.") - if FormFeatures.COLLECT_EMAIL in value and FormFeatures.REQUIRES_LOGIN not in value: # noqa + if FormFeatures.COLLECT_EMAIL in value and FormFeatures.REQUIRES_LOGIN not in value: raise ValueError("COLLECT_EMAIL feature require REQUIRES_LOGIN feature.") return value |