blogtk crashes on start

Bug #263234 reported by Cristian Del Fabbro
2
Affects Status Importance Assigned to Milestone
BloGTK
Fix Committed
High
JayReding

Bug Description

If a previously version of BloGTK have created a "~/.BloGTK" directory, then the application crashes on start:

cdf@sipuofare:~/Projects/blogtk$ python blogtk2.py
Got configuration directory
Traceback (most recent call last):
  File "blogtk2.py", line 512, in <module>
    blogtk.main()
  File "blogtk2.py", line 167, in main
    self.configReader = config.ConfigReader()
  File "/home/cdf/Projects/blogtk/config.py", line 49, in __init__
    self.tree = ElementTree.parse(self.configFile).getroot()
  File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 862, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 579, in parse
    source = open(source, "rb")
IOError: [Errno 2] Nessun file o directory: '/home/cdf/.BloGTK/config.xml'

my solution is to write:
rm -rf /home/cdf/.BloGTK

Related branches

Revision history for this message
JayReding (jayreding) wrote :

Fixed in revision 5. The config file was not being created if the config dir already existed. The new code tests for both the file and the cache directory before starting.

Changed in blogtk:
assignee: nobody → jayreding
importance: Undecided → High
status: New → Fix Committed
JayReding (jayreding)
Changed in blogtk:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.