1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Raise an error if psutil version is invalid

Fix #361
This commit is contained in:
Julien Duponchelle 2015-12-01 09:42:36 +01:00
parent 535afdba5e
commit e626c0b55c

View File

@ -22,6 +22,9 @@ import socket
import struct
import psutil
if psutil.version_info < (3, 0, 0):
raise Exception("psutil version should >= 3.0.0. If you are under ubuntu/debian install gns3 via apt instead of pip")
import logging
log = logging.getLogger(__name__)