changeset 314:a8fd83c0317d

Fix undefined variable in recipe error reporting. Closes #78.
author cmlenz
date Thu, 24 Nov 2005 18:49:35 +0000
parents 90422699a594
children 87c9b1e8f086
files bitten/recipe.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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():
Copyright (C) 2012-2017 Edgewall Software