Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Remove check for field length; the check is already done, so the code…

… isn't called.

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

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

0 comments on commit 668edbd

Please sign in to comment.
You can’t perform that action at this time.