counsyl / stor

A cross-compatible CLI and Python API for accessing block and object storage
https://counsyl.github.io/stor/
Other
35 stars 12 forks source link

Error earlier when open() called on DXProject to fix uncaught exception in `__del__ ` #133

Closed jtratner closed 4 years ago

jtratner commented 4 years ago

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: