mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
python: allow an empty path as parameter to Database.get_directory
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
This commit is contained in:
parent
786f9882e8
commit
c1094bc2d7
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ class Database(object):
|
|||
"""
|
||||
self._assert_db_is_initialized()
|
||||
# sanity checking if path is valid, and make path absolute
|
||||
if path[0] == os.sep:
|
||||
if path and path[0] == os.sep:
|
||||
# we got an absolute path
|
||||
if not path.startswith(self.get_path()):
|
||||
# but its initial components are not equal to the db path
|
||||
|
|
Loading…
Reference in a new issue