about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2011-09-15 09:59:03 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2011-09-15 09:59:03 +0200
commitafb5b55de640d1e0ee8fe486415b7a2ee2321816 (patch)
treef6b0c32c1748c85989a930f2928469e3ff435060
parentc23cec29a396cca227aed511f85632d406d8c706 (diff)
downloadyoutube-dl-afb5b55de640d1e0ee8fe486415b7a2ee2321816.tar.gz
youtube-dl-afb5b55de640d1e0ee8fe486415b7a2ee2321816.tar.xz
youtube-dl-afb5b55de640d1e0ee8fe486415b7a2ee2321816.zip
Proper warning if xml.etree.ElementTree is not available
-rwxr-xr-xyoutube-dl4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube-dl b/youtube-dl
index 733e23105..ae4917bba 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -66,8 +66,8 @@ except ImportError:
 
 try:
 	import xml.etree.ElementTree
-except ImportError: # Python<2.5
-	pass # Not officially supported, but let it slip
+except ImportError: # Python<2.5: Not officially supported, but let it slip
+	warnings.warn('xml.etree.ElementTree support is missing. Consider upgrading to Python >= 2.5 if you get related errors.')
 
 std_headers = {
 	'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:5.0.1) Gecko/20100101 Firefox/5.0.1',