Instead of e.errno == 17 we probably want to use something like "import
errno; errno.EEXIST".

But the code looks wrong currently, it first tries to create the dir, then odes 
a os.access and tries to redo it again,
so this needs cleanup and a unittest.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/743003

Title:
  software-center crashed with OSError in makedirs(): [Errno 17] File
  exists: '/home/joris/.cache/software-center'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/743003/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to