more explicit error messages during common import errors
This commit is contained in:
parent
32e965d338
commit
535d6efc47
8 changed files with 42 additions and 8 deletions
|
|
@ -22,7 +22,12 @@ from __future__ import with_statement
|
|||
from copy import copy
|
||||
from httplib import BadStatusLine
|
||||
from logging import warning
|
||||
import mechanize
|
||||
|
||||
try:
|
||||
import mechanize
|
||||
except ImportError:
|
||||
raise ImportError('Please install python-mechanize')
|
||||
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue