[rhmessaging-commits] rhmessaging commits: r2484 - mgmt/trunk/cumin/python/wooly.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Tue Sep 16 15:09:19 EDT 2008
Author: justi9
Date: 2008-09-16 15:09:19 -0400 (Tue, 16 Sep 2008)
New Revision: 2484
Modified:
mgmt/trunk/cumin/python/wooly/resources.py
Log:
Open the file out side the try/finally, to get a more useful error message
Modified: mgmt/trunk/cumin/python/wooly/resources.py
===================================================================
--- mgmt/trunk/cumin/python/wooly/resources.py 2008-09-16 18:30:05 UTC (rev 2483)
+++ mgmt/trunk/cumin/python/wooly/resources.py 2008-09-16 19:09:19 UTC (rev 2484)
@@ -10,8 +10,8 @@
self.strings = None
def load(self):
+ file = open(self.path)
try:
- file = open(self.path)
self.strings = parse_catalog_file(file)
finally:
file.close()
More information about the rhmessaging-commits
mailing list