diff --git a/bitbake/lib/bb/exceptions.py b/bitbake/lib/bb/exceptions.py index 801db9c82f..acf546de1d 100644 --- a/bitbake/lib/bb/exceptions.py +++ b/bitbake/lib/bb/exceptions.py @@ -38,14 +38,8 @@ def _get_frame_args(frame): """Get the formatted arguments and class (if available) for a frame""" arginfo = inspect.getargvalues(frame) - try: - if not arginfo.args: + if not arginfo.args: return '', None - # There have been reports from the field of python 2.6 which doesn't - # return a namedtuple here but simply a tuple so fallback gracefully if - # args isn't present. - except AttributeError: - return '', None firstarg = arginfo.args[0] if firstarg == 'self':