catch GPHOME unexpect Exception

This commit is contained in:
Racardo.Cui
2021-03-23 16:24:00 +08:00
parent c61f87e34a
commit 698e5b7fbc

View File

@ -54,6 +54,8 @@ class OMCommand():
if os.getgid() != 0:
gp_home = DefaultValue.getEnv("GPHOME")
if not gp_home:
raise Exception(ErrorCode.GAUSS_518["GAUSS_51802"] % "GPHOME")
Current_Path = os.path.join(gp_home, "script/gspylib/common")
LocalScript = {