mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-27 14:01:12 +02:00
Handle exception as ImportError
This commit is contained in:
@@ -25,7 +25,7 @@ import json
|
||||
import codecs
|
||||
try:
|
||||
from urllib.request import Request,urlopen
|
||||
except:
|
||||
except ImportError:
|
||||
from urllib2 import Request,urlopen
|
||||
|
||||
# External tools (can be overridden using environment)
|
||||
|
Reference in New Issue
Block a user