Skip to content

Commit

Permalink
Merge pull request #207 from CogStack/fix-cdb-load
Browse files Browse the repository at this point in the history
CU-8695wf9e2: fix path reference when checking that CDB loads correct…
  • Loading branch information
tomolopolis authored Sep 20, 2024
2 parents 1c47e7c + 036fd93 commit a59b1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/api/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def save(self, *args, skip_load=False, **kwargs, ):
# load the CDB, and raise if this fails.
if not skip_load:
try:
CDB.load(self.cdb_file)
CDB.load(self.cdb_file.path)
except Exception as exc:
raise MedCATLoadException(f'Failed to load Concept DB from {self.cdb_file}, '
f'check if this CDB file successfully loads elsewhere') from exc
Expand Down

0 comments on commit a59b1c4

Please sign in to comment.