File tree 6 files changed +19
-13
lines changed
6 files changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ import sys
29
29
30
30
try :
31
31
from omnistat .annotate import main
32
- except :
33
- print ("Unable to load omnistat.annotate. Please verify installation." )
32
+ except ImportError as err :
33
+ print (f"Unable to load Omnistat: { err } " )
34
+ print ("Please verify installation and dependencies." )
34
35
sys .exit (1 )
35
36
36
37
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ import sys
29
29
30
30
try :
31
31
from omnistat .node_monitoring import main
32
- except :
33
- print ("Unable to load omnistat.node_monitoring. Please verify installation." )
32
+ except ImportError as err :
33
+ print (f"Unable to load Omnistat: { err } " )
34
+ print ("Please verify installation and dependencies." )
34
35
sys .exit (1 )
35
36
36
37
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ import sys
29
29
30
30
try :
31
31
from omnistat .query import main
32
- except :
33
- print ("Unable to load omnistat.query. Please verify installation." )
32
+ except ImportError as err :
33
+ print (f"Unable to load Omnistat: { err } " )
34
+ print ("Please verify installation and dependencies." )
34
35
sys .exit (1 )
35
36
36
37
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ import sys
29
29
30
30
try :
31
31
from omnistat .rms_env import main
32
- except :
33
- print ("Unable to load omnistat.rms_env. Please verify installation." )
32
+ except ImportError as err :
33
+ print (f"Unable to load Omnistat: { err } " )
34
+ print ("Please verify installation and dependencies." )
34
35
sys .exit (1 )
35
36
36
37
if __name__ == "__main__" :
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- # ------------------------------------------------------------------------------- # -------------------------------------------------------------------------------
2
+ # -------------------------------------------------------------------------------
3
3
# MIT License
4
4
#
5
5
# Copyright (c) 2023 - 2025 Advanced Micro Devices, Inc. All Rights Reserved.
@@ -32,8 +32,9 @@ if os.path.isdir("omnistat") and sys.path[0]:
32
32
33
33
try :
34
34
from omnistat .standalone import main
35
- except :
36
- print ("Unable to load omnistat.standalone. Please verify installation." )
35
+ except ImportError as err :
36
+ print (f"Unable to load Omnistat: { err } " )
37
+ print ("Please verify installation and dependencies." )
37
38
sys .exit (1 )
38
39
39
40
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ import sys
29
29
30
30
try :
31
31
from omnistat .omni_util import main
32
- except :
33
- print ("Unable to load omnistat.omni_util. Please verify installation." )
32
+ except ImportError as err :
33
+ print (f"Unable to load Omnistat: { err } " )
34
+ print ("Please verify installation and dependencies." )
34
35
sys .exit (1 )
35
36
36
37
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments