fb068045b1c322d14ac488ecfbc698d158c7d630,dm_control/mjcf/parser.py,,_parse_children,#Any#Any#Any#,184

Before Change


        mjcf_child.set_attributes(**attributes)
    except:  // pylint: disable=bare-except
      err_type, err, traceback = sys.exc_info()
      message = ("Line {}: error while parsing element <{}>: {}"
                 .format(xml_child.sourceline, xml_child.tag, err))
      six.reraise(err_type, err_type(message), traceback)
    _parse_children(xml_child, mjcf_child, escape_separators)

After Change


        mjcf_child.set_attributes(**attributes)
    except:  // pylint: disable=bare-except
      err_type, err, traceback = sys.exc_info()
      raise err_type(
          f"Line {xml_child.sourceline}: error while parsing element "
          f"<{xml_child.tag}>: {err}").with_traceback(traceback)
    _parse_children(xml_child, mjcf_child, escape_separators)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepmind/dm_control
Commit Name: fb068045b1c322d14ac488ecfbc698d158c7d630
Time: 2020-11-26
Author: alimuldal@google.com
File Name: dm_control/mjcf/parser.py
Class Name:
Method Name: _parse_children


Project Name: deepmind/dm_control
Commit Name: fb068045b1c322d14ac488ecfbc698d158c7d630
Time: 2020-11-26
Author: alimuldal@google.com
File Name: dm_control/composer/task.py
Class Name: Task
Method Name: _check_root_entity


Project Name: deepmind/dm_control
Commit Name: fb068045b1c322d14ac488ecfbc698d158c7d630
Time: 2020-11-26
Author: alimuldal@google.com
File Name: dm_control/mjcf/debugging.py
Class Name: DebugContext
Method Name: process_and_raise_last_exception