From: <dg...@us...> - 2010-01-17 00:50:39
|
Revision: 479 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=479&view=rev Author: dgranda Date: 2010-01-17 00:16:08 +0000 (Sun, 17 Jan 2010) Log Message: ----------- getValue returns None instead of empty string if an exception is raised Modified Paths: -------------- pytrainer/trunk/pytrainer/lib/xmlUtils.py Modified: pytrainer/trunk/pytrainer/lib/xmlUtils.py =================================================================== --- pytrainer/trunk/pytrainer/lib/xmlUtils.py 2010-01-17 00:13:25 UTC (rev 478) +++ pytrainer/trunk/pytrainer/lib/xmlUtils.py 2010-01-17 00:16:08 UTC (rev 479) @@ -58,7 +58,7 @@ return list_options def getOption(self,option): - print "this function is obsolete, use getValue instead" + logging.info("this function is obsolete, use getValue instead") return self.getValue("pytraining",option) def setVersion(self,version): @@ -79,7 +79,7 @@ root = self.xmldoc.getElementsByTagName(tagname)[0] value = root.attributes[variable].value except: - value = "" + value = None return value def getAllValues(self,tagname): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |