File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,12 @@ def __init__(self):
85
85
self .run_time_data = {}
86
86
87
87
def end_test (self , name , attributes ):
88
- try :
89
- lib = BuiltIn ().get_library_instance ('oxygen.OxygenLibrary' )
90
- if lib :
91
- self .run_time_data [attributes ['longname' ]] = lib .data
92
- except RuntimeError as error :
93
- if str (error ) != "No library 'oxygen.OxygenLibrary' found." :
94
- raise error
88
+ libs = [* BuiltIn ()._get_context ().namespace .libraries ]
89
+ if 'oxygen.OxygenLibrary' not in [lib .name for lib in libs ]:
90
+ return
91
+ lib_instance = BuiltIn ().get_library_instance ('oxygen.OxygenLibrary' )
92
+ if lib_instance :
93
+ self .run_time_data [attributes ['longname' ]] = lib_instance .data
95
94
96
95
def output_file (self , path ):
97
96
result = ExecutionResult (path )
You can’t perform that action at this time.
0 commit comments