mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
flake8: E999 SyntaxError: invalid syntax.
This commit is contained in:
committed by
Dan Christian Bogos
parent
32ca33c1d2
commit
8538f557d8
@@ -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.')
|
||||
|
||||
Reference in New Issue
Block a user