We still may want to implement a bulletproof check for the current version, and a better place to add this message so that it works for all kind of other errors too.
@ -434,7 +435,13 @@ class ExtractorError(Exception):
ifcause:
msg+=' (caused by %r)'%cause
ifnotexpected:
msg=msg+'; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.'
ifytdl_is_updateable():
update_cmd='type youtube-dl -U to update'
else:
update_cmd='see https://yt-dl.org/update on how to update'
msg+='; please report this issue on https://yt-dl.org/bug .'
msg+=' Make sure you are using the latest version; %s.'%update_cmd
msg+=' Be sure to call youtube-dl with the --verbose flag and include its complete output.'