mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-11-04 07:54:03 +00:00 
			
		
		
		
	Catch URLError, not HTTPError when pulling sources
This commit is contained in:
		
							parent
							
								
									b62377b374
								
							
						
					
					
						commit
						394d956a37
					
				@ -279,7 +279,7 @@ class SourcePackage(object):
 | 
			
		||||
 | 
			
		||||
        try:
 | 
			
		||||
            in_ = urllib2.urlopen(url)
 | 
			
		||||
        except urllib2.HTTPError:
 | 
			
		||||
        except urllib2.URLError:
 | 
			
		||||
            return False
 | 
			
		||||
 | 
			
		||||
        with open(pathname, 'wb') as out:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user