# HG changeset patch # User cmlenz # Date 1132858175 0 # Node ID a8fd83c0317d86e34c97ca567c34bc5cdd8a03db # Parent 90422699a594c6b8b498725e0c76d0e48f814abf Fix undefined variable in recipe error reporting. Closes #78. diff --git a/bitten/recipe.py b/bitten/recipe.py --- a/bitten/recipe.py +++ b/bitten/recipe.py @@ -121,8 +121,9 @@ @param file_: the path to the file containing the report data, relative to the base directory """ + filename = self.resolve(file_) try: - fileobj = file(self.resolve(file_), 'r') + fileobj = file(filename, 'r') try: xml_elem = xmlio.Fragment() for child in xmlio.parse(fileobj).children():