]> granicus.if.org Git - python/commitdiff
don't use a catch-all
authorBenjamin Peterson <benjamin@python.org>
Sat, 25 Oct 2008 23:27:07 +0000 (23:27 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 25 Oct 2008 23:27:07 +0000 (23:27 +0000)
Tools/scripts/findnocoding.py

index 537f0a18534c3de0b121cde61e645959f2c81fc7..e49fc425ffcec4b3a9dbc8eaecfaa2e305945f9a 100755 (executable)
@@ -12,7 +12,7 @@ import sys, os, re, getopt
 # our pysource module finds Python source files
 try:
     import pysource
-except:
+except ImportError:
     # emulate the module with a simple os.walk
     class pysource:
         has_python_ext = looks_like_python = can_be_compiled = None