Revision: 5551 Author: cosoleto Date: 2008-06-10 12:54:25 +0000 (Tue, 10 Jun 2008)
Log Message: ----------- Fixed bug #1915362 IOError in "category.py tree"
Modified Paths: -------------- trunk/pywikipedia/category.py
Modified: trunk/pywikipedia/category.py =================================================================== --- trunk/pywikipedia/category.py 2008-06-10 12:39:30 UTC (rev 5550) +++ trunk/pywikipedia/category.py 2008-06-10 12:54:25 UTC (rev 5551) @@ -779,7 +779,7 @@ def __init__(self, catTitle, catDB, filename = None, maxDepth = 10): self.catTitle = catTitle self.catDB = catDB - if not os.path.isabs(filename): + if filename and not os.path.isabs(filename): filename = wikipedia.config.datafilepath(filename) self.filename = filename # TODO: make maxDepth changeable with a parameter or config file entry