Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Remove check for field length; the check is already done, so the code…
Browse files Browse the repository at this point in the history
… isn't called.

git-svn-id: https://svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk@11923 e27351fd-9f3e-4f54-a53b-843176b1656c
  • Loading branch information
Wilfredo Sanchez committed Nov 8, 2013
1 parent da960d7 commit 668edbd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions twext/who/directory.py
Expand Up @@ -291,11 +291,6 @@ def __init__(self, service, fields):


if FieldName.isMultiValue(fieldName): if FieldName.isMultiValue(fieldName):
values = fields[fieldName] values = fields[fieldName]
if len(values) == 0:
raise ValueError(
"{0} field must have at least one value."
.format(fieldName)
)
for value in values: for value in values:
if not value: if not value:
raise ValueError( raise ValueError(
Expand Down

0 comments on commit 668edbd

Please sign in to comment.