Replace failure handling with up-front check.
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 24 Jul 2014 11:29:44 +0000 (13:29 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 24 Jul 2014 11:29:44 +0000 (13:29 +0200)
commit4192b51c7c599d1fb1114dcee8abaa44bc48d03b
treeb9b5515670bc298ee3f5b6e789e4d1b121132462
parent052421ff0971ec3d269dc9e87e76c80dffcd2e60
Replace failure handling with up-front check.

The only time that write_string should fail is if the Python is completely braindead.
Check for that condition and output a more accurate warning.

See #3326 for details.
youtube_dl/YoutubeDL.py