From: David F. <dav...@us...> - 2004-09-30 15:20:14
|
Update of /cvsroot/translate/src/translate/convert In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18846 Modified Files: convert.py Log Message: check if templates are used before trying to access options.templates, to prevent error... Index: convert.py =================================================================== RCS file: /cvsroot/translate/src/translate/convert/convert.py,v retrieving revision 1.58 retrieving revision 1.59 diff -u -d -r1.58 -r1.59 --- convert.py 30 Sep 2004 09:52:01 -0000 1.58 +++ convert.py 30 Sep 2004 15:20:05 -0000 1.59 @@ -238,6 +238,8 @@ def inittemplatearchive(self, options): """opens the templatearchive if not already open""" + if not self.usetemplates: + return if options.template and self.isarchive(options.template) and not hasattr(options, "templatearchive"): options.templatearchive = self.openarchive(options.template) |