From 0c0cc5dcf5b063270d7d41b9ab9360265e4f5f7d Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Mon, 13 Jan 2020 19:03:58 +0000 Subject: [PATCH] Allow document Additional URLs to become empty. Fixes #2864. Commit ready for merge. - Legacy-Id: 17227 --- ietf/doc/views_draft.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/doc/views_draft.py b/ietf/doc/views_draft.py index 7eaa32053..d99e8ccdd 100644 --- a/ietf/doc/views_draft.py +++ b/ietf/doc/views_draft.py @@ -1,4 +1,4 @@ -# Copyright The IETF Trust 2010-2019, All Rights Reserved +# Copyright The IETF Trust 2010-2020, All Rights Reserved # -*- coding: utf-8 -*- @@ -1188,8 +1188,8 @@ def edit_document_urls(request, name): def clean_urls(self): lines = [x.strip() for x in self.cleaned_data["urls"].splitlines() if x.strip()] url_validator = URLValidator() + errors = [] for l in lines: - errors = [] parts = l.split() if len(parts) == 1: errors.append("Too few fields: Expected at least url and tag: '%s'" % l)