diff --git a/digiarch/commands/identify.py b/digiarch/commands/identify.py index 77aed58a..3fc73a5a 100644 --- a/digiarch/commands/identify.py +++ b/digiarch/commands/identify.py @@ -291,6 +291,8 @@ def command_identify( db_path.parent.mkdir(parents=True, exist_ok=True) with FileDB(db_path) as database: + if not database.is_initialised(): + database.init() log_file, log_stdout, _ = start_program(ctx, database, __version__, None, True, True, False) database.init()