]> git.ipfire.org Git - location/libloc.git/blobdiff - src/python/location.in
location: Fix Python syntax error in verify()
[location/libloc.git] / src / python / location.in
index 44ad726743424692a5406d840bcb1c91a1fa57a1..b5e57589b595c39b921cc32f6808b4141ed86b3b 100644 (file)
@@ -453,13 +453,7 @@ class CLI(object):
 
                return 0
 
-       def handle_verify(self, ns):
-               try:
-                       db = location.Database(ns.database)
-               except FileNotFoundError as e:
-                       log.error("%s: %s" % (ns.database, e))
-                       return 127
-
+       def handle_verify(self, db, ns):
                # Verify the database
                with open(ns.public_key, "r") as f:
                        if not db.verify(f):