Skip to content

Commit

Permalink
commands.identify:command_identify - initialise database if it isn't …
Browse files Browse the repository at this point in the history
…already
  • Loading branch information
MatteoCampinoti94 committed Nov 21, 2024
1 parent 98720c6 commit 775ba53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions digiarch/commands/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 775ba53

Please sign in to comment.