mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
flake8: E713 test for membership should be 'not in'.
This commit is contained in:
committed by
Dan Christian Bogos
parent
33fa773a0b
commit
32ca33c1d2
@@ -54,7 +54,7 @@ if len(from_keys) > 0:
|
||||
try:
|
||||
from_redis.execute_command('MIGRATE', to_host, to_port, key, to_db, timeout)
|
||||
except redis.exceptions.ResponseError, e:
|
||||
if not 'ERR Target key name is busy' in str(e):
|
||||
if 'ERR Target key name is busy' not in str(e):
|
||||
raise e
|
||||
print('Done.')
|
||||
# done
|
||||
|
||||
Reference in New Issue
Block a user