Skip to content

Commit

Permalink
database.files_db:FilesDB.version - ensure return type is Version
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Oct 21, 2024
1 parent a7abcc0 commit 9c9def4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acacore/database/files_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def is_initialised(self) -> bool:

def version(self) -> Version:
if self.is_initialised():
return self.metadata.get("version")
return Version(self.metadata.get("version"))
raise DatabaseError("Not initialised")

def init(self):
Expand Down

0 comments on commit 9c9def4

Please sign in to comment.