invert bad conditional

This commit is contained in:
Connor Olding 2020-09-05 15:40:15 +02:00
parent 6d6c2d52cd
commit 73f4ca2b53

View file

@ -188,7 +188,7 @@ async def sync_database(db, opts: Options):
for ips, kw in ((china, "china"), (blocks, "block_target")):
for ip in ips:
kwargs = {kw: True}
if db is None:
if db is not None:
db.modify_address(ip, **kwargs)
await opts.ips.put(ip)