Skip to content

Commit 3fe4804

Browse files
committed
Merged in [17227] from rjsparks@nostrum.com:
Allow document Additional URLs to become empty. Fixes ietf-tools#2864. - Legacy-Id: 17229 Note: SVN reference [17227] has been migrated to Git commit 0c0cc5d
2 parents 288f413 + 0c0cc5d commit 3fe4804

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)