Skip to content

Commit

Permalink
CU-8695wf9e2: fix path reference when checking that CDB loads correct…
Browse files Browse the repository at this point in the history
…ly before accepting upload.
  • Loading branch information
tomolopolis committed Sep 20, 2024
1 parent 1c47e7c commit 036fd93
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 036fd93

Please sign in to comment.