flake8: E999 SyntaxError: invalid syntax.

This commit is contained in:
Bas Couwenberg
2019-05-02 10:28:27 +02:00
committed by Dan Christian Bogos
parent 32ca33c1d2
commit 8538f557d8

View File

@@ -53,7 +53,7 @@ if len(from_keys) > 0:
print('Moving key %s (%d of %d)...' % (key, i, len(from_keys))),
try:
from_redis.execute_command('MIGRATE', to_host, to_port, key, to_db, timeout)
except redis.exceptions.ResponseError, e:
except redis.exceptions.ResponseError as e:
if 'ERR Target key name is busy' not in str(e):
raise e
print('Done.')