Skip to content

Commit 16d2937

Browse files
Handle exception as ImportError
1 parent 0eb65aa commit 16d2937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/devtools/github-merge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import codecs
2626
try:
2727
from urllib.request import Request,urlopen
28-
except:
28+
except ImportError:
2929
from urllib2 import Request,urlopen
3030

3131
# External tools (can be overridden using environment)

0 commit comments

Comments
 (0)