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 richardxia
Recipients andrewnester, christian.heimes, jwilk, r.david.murray, rhettinger, richardxia
Date 2017-03-27.21:34:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490650481.63.0.962945881999.issue29573@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the discussion. I ended up doing something similar to the code snippet Christian posted, except I also had a second try/except FileNotFoundError within the original finally block to catch the case that David pointed out.

In retrospect, I probably should have used TemporaryDirectory since I am using Python 3.5 and because the file I was creating with NamedTemporaryFile was only being used as an output file, not an input file, to the subprocess command.
History
Date User Action Args
2017-03-27 21:34:41richardxiasetrecipients: + richardxia, rhettinger, christian.heimes, jwilk, r.david.murray, andrewnester
2017-03-27 21:34:41richardxiasetmessageid: <1490650481.63.0.962945881999.issue29573@psf.upfronthosting.co.za>
2017-03-27 21:34:41richardxialinkissue29573 messages
2017-03-27 21:34:41richardxiacreate