Raise an exception directly in stor.open if we have a project path.
Previously, we were raising an exception at write_object;
however, if you actually attempted to write data to the path, this would
result in an exception in the __del__ method as stor tried to flush
data.
This also helps reduce noise from the test suite (i.e., those test annotations)
Documented changes:
Eliminate exception in __del__ method when calling stor.open on a DNAnexus project path.
stor.open() now throws an error earlier when incorrectly calling open() on a DNAnexus project path.
Raise an exception directly in
stor.open
if we have a project path.Previously, we were raising an exception at
write_object
; however, if you actually attempted to write data to the path, this would result in an exception in the__del__
method asstor
tried to flush data.This also helps reduce noise from the test suite (i.e., those test annotations)
Documented changes:
__del__
method when callingstor.open
on a DNAnexus project path.stor.open()
now throws an error earlier when incorrectly callingopen()
on a DNAnexus project path.