fix #3071: import error message

This commit is contained in:
ThomasV 2017-10-20 09:53:54 +02:00
parent 76da6916f3
commit 5a45f257ca
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ def check_imports():
import google.protobuf
import jsonrpclib
except ImportError as e:
sys.exit("Error: %s. Try 'sudo pip install <module-name>'"%e.message)
sys.exit("Error: %s. Try 'sudo pip install <module-name>'"%str(e))
# the following imports are for pyinstaller
from google.protobuf import descriptor
from google.protobuf import message