You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Santiago, thanks for your amazing work here!
I'm having a play around with whombat and reporting this minor bug in case it's useful:
Description
When attempting to delete an annotation project corresponding to a dataset that has already been deleted, an error occurs. The deletion process fails with a TypeError when pathlib.Path gets a None value where it expects a path-like object.
Steps to Reproduce
Create a dataset and an annotation project associated with it.
The error occurs in the process_result_value method of the custom SQLAlchemy type defined in whombat/models/base.py, L32. I'm guessing that when trying to process a path value from the now deleted database, it receives None instead of a valid path string.
Suggested Fix?
Do null checking in the process_result_value method or make sure that dataset deletion properly updates or nullifies any dependent paths in annotation projects.
Environment
Whombat version: 0.5.1, installed via pip
Python version: 3.11
Operating System: Ubuntu 22.10
The text was updated successfully, but these errors were encountered:
Hi Santiago, thanks for your amazing work here!
I'm having a play around with
whombat
and reporting this minor bug in case it's useful:Description
When attempting to delete an annotation project corresponding to a dataset that has already been deleted, an error occurs. The deletion process fails with a
TypeError
whenpathlib.Path
gets aNone
value where it expects a path-like object.Steps to Reproduce
(Minimised) Traceback
Possible Cause
The error occurs in the
process_result_value
method of the custom SQLAlchemy type defined inwhombat/models/base.py
,L32
. I'm guessing that when trying to process a path value from the now deleted database, it receivesNone
instead of a valid path string.Suggested Fix?
Do null checking in the
process_result_value
method or make sure that dataset deletion properly updates or nullifies any dependent paths in annotation projects.Environment
The text was updated successfully, but these errors were encountered: