Skip to content
Snippets Groups Projects
Commit 71234989 authored by inso's avatar inso
Browse files

Fix bug with empty endpoint (#744)

parent 1e6c55ed
No related branches found
No related tags found
No related merge requests found
......@@ -10,11 +10,14 @@ def _tuple_of_endpoints(value):
l = [endpoint(e) for e in value]
return tuple(l)
elif isinstance(value, str):
if value:
list_of_str = value.split('\n')
conv = []
for s in list_of_str:
conv.append(endpoint(s))
return conv
else:
return []
else:
raise TypeError("Can't convert {0} to list of endpoints".format(value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment