From 73f4ca2b5323a79a21d0285a334b93cfd053f5ac Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 5 Sep 2020 15:40:15 +0200 Subject: [PATCH] invert bad conditional --- respodns/dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/respodns/dns.py b/respodns/dns.py index c5a8d4b..d766629 100644 --- a/respodns/dns.py +++ b/respodns/dns.py @@ -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)