File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ def __init__(self, lowlevel):
105
105
setattr (self , method , ll_method )
106
106
107
107
def _imas_not_available (self , * args , ** kwargs ):
108
- logger . error (
109
- "Some functions requires an imas installation, which is not available."
108
+ raise RuntimeError (
109
+ "This function requires an imas installation, which is not available."
110
110
)
111
111
112
112
def _minimal_version (self , minversion ):
Original file line number Diff line number Diff line change @@ -76,7 +76,10 @@ def print_version():
76
76
dd_versions = ", " .join (imas .dd_zip .dd_xml_versions ())
77
77
grid .add_row ("Available data dictionary versions:" , dd_versions )
78
78
grid .add_section ()
79
- grid .add_row ("Access Layer core version:" , ll_interface .get_al_version () or "N/A" )
79
+ try :
80
+ grid .add_row ("Access Layer core version:" , ll_interface .get_al_version () or "N/A" )
81
+ except Exception as exc :
82
+ grid .add_row ("Access Layer core version:" , "N/A" )
80
83
console .Console ().print (grid )
81
84
82
85
You can’t perform that action at this time.
0 commit comments