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

Replace RuntimeError by SystemExit.

This commit is contained in:
grossmj 2015-06-03 19:58:58 -06:00
parent 37ddff9f07
commit b118f9a078

View File

@ -201,7 +201,7 @@ def run():
# we only support Python 3 version >= 3.4 # we only support Python 3 version >= 3.4
if sys.version_info < (3, 4): if sys.version_info < (3, 4):
raise RuntimeError("Python 3.4 or higher is required") raise SystemExit("Python 3.4 or higher is required")
user_log.info("Running with Python {major}.{minor}.{micro} and has PID {pid}".format( user_log.info("Running with Python {major}.{minor}.{micro} and has PID {pid}".format(
major=sys.version_info[0], minor=sys.version_info[1], major=sys.version_info[0], minor=sys.version_info[1],