Don't use bare 'except:'
They catch any exception, including KeyboardInterrupt, we don't want to catch it.
This commit is contained in:
		
							parent
							
								
									af14000215
								
							
						
					
					
						commit
						70a1165b32
					
				
					 8 changed files with 16 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -28,7 +28,7 @@ for test in get_testcases():
 | 
			
		|||
    if METHOD == 'EURISTIC':
 | 
			
		||||
        try:
 | 
			
		||||
            webpage = compat_urllib_request.urlopen(test['url'], timeout=10).read()
 | 
			
		||||
        except:
 | 
			
		||||
        except Exception:
 | 
			
		||||
            print('\nFail: {0}'.format(test['name']))
 | 
			
		||||
            continue
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue