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
The parameter
situation_num
in the methodlabel_from_object_language_tuple()
is only used if there is an error. A better way to achieve the desired effect (reporting whichsituation_n
directory caused the problem) would be to wrap every call oflabel_from_object_language_tuple
in atry... except
block