File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -177,15 +177,15 @@ def get_source_outputs(self, source_name):
177
177
if source_name in source : # deal with legacy double nesting of source source_name
178
178
source = source [source_name ]
179
179
return source
180
- except KeyError :
180
+ except ( KeyError , AttributeError ) :
181
181
pass
182
182
183
183
try :
184
184
source = self .failures [source_name ]
185
185
if source_name in source : # deal with legacy double nesting of source source_name
186
186
source = source [source_name ]
187
187
raise ResultsError (source .error )
188
- except KeyError :
188
+ except ( KeyError , AttributeError ) :
189
189
pass
190
190
191
191
# TODO: can we give a better error message if job canceled?
@@ -218,12 +218,12 @@ def get_first_outputs(self):
218
218
def _get_first_source_name (self ):
219
219
try :
220
220
return next (iter (self .results ))
221
- except StopIteration :
221
+ except ( StopIteration , AttributeError ) :
222
222
pass
223
223
224
224
try :
225
225
return next (iter (self .failures ))
226
- except StopIteration :
226
+ except ( StopIteration , AttributeError ) :
227
227
pass
228
228
229
229
# TODO: can we give a better error message if job canceled?
You can’t perform that action at this time.
0 commit comments