aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings
diff options
context:
space:
mode:
authorGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-02-21 00:56:07 +0100
committerGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-02-21 00:56:07 +0100
commitc1094bc2d767159b5478cd0399d37a4813d0de05 (patch)
tree065a90ebf64e7c8203c5796e39243e582e2f26c2 /bindings
parent786f9882e8b408e6ad4c6b7abfef1ac54144be15 (diff)
python: allow an empty path as parameter to Database.get_directory
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/notmuch/database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py
index d8413671..ab3cdec5 100644
--- a/bindings/python/notmuch/database.py
+++ b/bindings/python/notmuch/database.py
@@ -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