]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/freeze.py
fix uses of config.get_path() to expect None
[nominatim.git] / nominatim / tools / freeze.py
index e502c963de414a80c4f525d7c72e128ceaffd532..b0ebb2c08f8c872b4147a2b4eaecadccfd1df0bd 100644 (file)
@@ -42,10 +42,8 @@ def drop_update_tables(conn):
     conn.commit()
 
 
     conn.commit()
 
 
-def drop_flatnode_file(fname):
+def drop_flatnode_file(fpath):
     """ Remove the flatnode file if it exists.
     """
     """ Remove the flatnode file if it exists.
     """
-    if fname:
-        fpath = Path(fname)
-        if fpath.exists():
-            fpath.unlink()
+    if fpath and fpath.exists():
+        fpath.unlink()