Skip to content

Commit 6d15e89

Browse files
committed
Don't die if there are no matching databases.
1 parent 1fd7475 commit 6d15e89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

couchdb/tools/replicate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def main():
9393
elif '*' in spath:
9494
check = re.compile(spath.replace('*', '.*?'))
9595
databases = [(i, i) for i in all if check.match(i)]
96+
else:
97+
databases = []
9698

9799
if not databases:
98100
raise parser.error("no source databases match glob '%s'" % spath)

0 commit comments

Comments
 (0)