pyrax
pyrax copied to clipboard
copy_object() throws NoSuchContainer when file does not exist
I'm using pyrax 1.9.4. My script uses copy_object(from_container, name, to_container) and catches NoSuchObject. However, when the object name contains a leading forward slash (ie "/path/to/file") it's throwing NoSuchContainer.
OK, it's a schoolboy error, but the bum lead had me tearing my hair out. It'd be nice if it threw something like InvalidObjectName, or even just printed the full path ("/container//path/to/file") so the doubled forward slash was obvious.