This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients andrewnester, christian.heimes, jwilk, r.david.murray, rhettinger, richardxia
Date 2017-03-27.21:02:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490648560.36.0.265697689858.issue29573@psf.upfronthosting.co.za>
In-reply-to
Content
He's still going to get an error using your code, Christian.  But if he knows that the file being gone is OK, he can catch and ignore the error.  Having exit do the unlink wouldn't help him; in that case he'd have to wrap the whole 'with' clause in a try/except.

So I think delete=False and handling the error "manually" is the correct solution here, since I doubt we want to add a "already_deleted_ok=False" flag to the API for this limited use case that can be handled with delete=False.

I vote for closing this as rejected.
History
Date User Action Args
2017-03-27 21:02:40r.david.murraysetrecipients: + r.david.murray, rhettinger, christian.heimes, jwilk, andrewnester, richardxia
2017-03-27 21:02:40r.david.murraysetmessageid: <1490648560.36.0.265697689858.issue29573@psf.upfronthosting.co.za>
2017-03-27 21:02:40r.david.murraylinkissue29573 messages
2017-03-27 21:02:40r.david.murraycreate