mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[YoutubeDL] Properly process unable-to-download-error on python2
This commit is contained in:
		@@ -1639,7 +1639,7 @@ class YoutubeDL(object):
 | 
				
			|||||||
                    # Just a single file
 | 
					                    # Just a single file
 | 
				
			||||||
                    success = dl(filename, info_dict)
 | 
					                    success = dl(filename, info_dict)
 | 
				
			||||||
            except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
 | 
					            except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
 | 
				
			||||||
                self.report_error('unable to download video data: %s' % str(err))
 | 
					                self.report_error('unable to download video data: %s' % error_to_compat_str(err))
 | 
				
			||||||
                return
 | 
					                return
 | 
				
			||||||
            except (OSError, IOError) as err:
 | 
					            except (OSError, IOError) as err:
 | 
				
			||||||
                raise UnavailableVideoError(err)
 | 
					                raise UnavailableVideoError(err)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user