From: Michael Tremer Date: Thu, 5 Dec 2019 14:54:29 +0000 (+0000) Subject: location-query: Do not validate database every time X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b43287f17f398baf12781817ddcfb6cb322bd1e3;p=people%2Fsennis%2Flibloc.git location-query: Do not validate database every time Signed-off-by: Michael Tremer --- diff --git a/src/python/location-query.in b/src/python/location-query.in index a1ca7fe..052befb 100644 --- a/src/python/location-query.in +++ b/src/python/location-query.in @@ -223,18 +223,6 @@ class CLI(object): % (args.database, e)) sys.exit(1) - # Verify the database - try: - with open(args.public_key, "r") as f: - if not db.verify(f): - sys.stderr.write("location-query: Could not verify the database\n") - sys.exit(1) - - # Catch any errors when loading the public key - except (FileNotFoundError, OSError) as e: - sys.stderr.write("Could not read the public key: %s\n" % e) - sys.exit(1) - # Translate family if args.family == "ipv6": args.family = socket.AF_INET6