Python error while aborting the open project prompt

Issue #571 invalid
Anonymous created an issue

I get an Python error when i try to press ESC while in the RopeOpenProject command. Here is the related traceback:

Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/phxx/.vim/custom/rope/pylibs/ropemode/", line 53, in newfunc return func(args, *kwds) File "/home/phxx/.vim/custom/rope/pylibs/ropemode/", line 88, in open_project self.project = rope.base.project.Project(root) File "/home/phxx/.vim/custom/rope/pylibs/rope/base/", line 130, in init projectroot = _realpath(projectroot).rstrip('/\') File "/home/phxx/.vim/custom/rope/pylibs/rope/base/", line 428, in _realpath return os.path.realpath(os.path.abspath(os.path.expanduser(path))) File "/usr/lib/python2.5/", line 313, in expanduser if not path.startswith('~'): AttributeError: 'NoneType' object has no attribute 'startswith'

I think the self.env.ask_directory() in ropemode/ returns None if the prompt is aborted with ESC.

Comments (1)

  1. Log in to comment