fix uses of config.get_path() to expect None

This commit is contained in:
Sarah Hoffmann
2022-07-03 18:36:33 +02:00
parent c4928c646d
commit aaf2b6032e
5 changed files with 9 additions and 11 deletions

View File

@@ -42,10 +42,8 @@ def drop_update_tables(conn):
conn.commit()
def drop_flatnode_file(fname):
def drop_flatnode_file(fpath):
""" Remove the flatnode file if it exists.
"""
if fname:
fpath = Path(fname)
if fpath.exists():
fpath.unlink()
if fpath and fpath.exists():
fpath.unlink()