Skip to content

Commit 0c0cc5d

Browse files
committed
Allow document Additional URLs to become empty. Fixes ietf-tools#2864. Commit ready for merge.
- Legacy-Id: 17227
1 parent af0a995 commit 0c0cc5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/doc/views_draft.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright The IETF Trust 2010-2019, All Rights Reserved
1+
# Copyright The IETF Trust 2010-2020, All Rights Reserved
22
# -*- coding: utf-8 -*-
33

44

@@ -1188,8 +1188,8 @@ class DocumentUrlForm(forms.Form):
11881188
def clean_urls(self):
11891189
lines = [x.strip() for x in self.cleaned_data["urls"].splitlines() if x.strip()]
11901190
url_validator = URLValidator()
1191+
errors = []
11911192
for l in lines:
1192-
errors = []
11931193
parts = l.split()
11941194
if len(parts) == 1:
11951195
errors.append("Too few fields: Expected at least url and tag: '%s'" % l)

0 commit comments

Comments
 (0)