flake8: E713 test for membership should be 'not in'.

This commit is contained in:
Bas Couwenberg
2019-05-02 10:26:56 +02:00
committed by Dan Christian Bogos
parent 33fa773a0b
commit 32ca33c1d2

View File

@@ -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