X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Futils.py;h=5ba06d965fdd0ca3ca2be9624948c359ce7c5bf5;hb=ffa8f0df0a878463078467709f615b1e57c61ec1;hp=a84aa59c22ac73d8fdd710a1b1c2fd8232e80722;hpb=303b479e0a4b7db5b8e30be6ff3ffc1ea267e87c;p=youtube-dl diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index a84aa59c2..5ba06d965 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -547,7 +547,7 @@ def make_HTTPS_handler(opts_no_check_certificate): def connect(self): sock = socket.create_connection((self.host, self.port), self.timeout) - if self._tunnel_host: + if getattr(self, '_tunnel_host', False): self.sock = sock self._tunnel() try: