From 70a1165b32acf253905109e9b4f245295d67af1f Mon Sep 17 00:00:00 2001 From: Jaime Marquínez Ferrándiz Date: Fri, 27 Mar 2015 13:02:20 +0100 Subject: Don't use bare 'except:' They catch any exception, including KeyboardInterrupt, we don't want to catch it. --- devscripts/check-porn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devscripts') diff --git a/devscripts/check-porn.py b/devscripts/check-porn.py index 6a5bd9eda..7a219ebe9 100644 --- a/devscripts/check-porn.py +++ b/devscripts/check-porn.py @@ -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 -- cgit 1.4.1