isi-vista / adam

Abduction to Demonstrate an Articulate Machine
MIT License
11 stars 3 forks source link

Function has param only used for error reporting #1180

Open boyleconnor opened 1 year ago

boyleconnor commented 1 year ago

The parameter situation_num in the method label_from_object_language_tuple() is only used if there is an error. A better way to achieve the desired effect (reporting which situation_n directory caused the problem) would be to wrap every call of label_from_object_language_tuple in a try... except block