Skip to content

Commit d8b4a2e

Browse files
fix compat
1 parent 0909c95 commit d8b4a2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

es_sync/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ def __init__(self):
7070
})
7171
self.dump_cmd = 'mysqldump -h {host} -P {port} -u {user} --password={password} --database {db} --tables {tables} ' \
7272
'--default-character-set=utf8 -X --opt --quick'.format(**mysql)
73+
else:
74+
print('Error: must specify either table or tables')
75+
exit(1)
7376
self.master = self.tables[0] # use the first table as master
7477
self.current_table = None
7578

0 commit comments

Comments
 (0)