Skip to content

Commit 269d111

Browse files
committed
Allow URLs without a path component.
1 parent 37c4b57 commit 269d111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

couchdb/tools/replicate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def findpath(parser, s):
3636
bits = urlparse.urlparse(s)
3737
res = http.Resource('%s://%s/' % (bits.scheme, bits.netloc), None)
3838
parts = bits.path.split('/')[1:]
39-
if not parts[-1]:
39+
if parts and not parts[-1]:
4040
parts = parts[:-1]
4141

4242
cut = None

0 commit comments

Comments
 (0)